Can edge connection have flags?

Yes. You can have attributes for edges a.k.a Facets.
See https://dgraph.io/docs/query-language/#facets-edge-attributes