Different graphs may represent the edge in different ways. A graph with a
simple edge concept - e.g., no edge weighting or typing, etc. - may
represent the edge as a 2-tuple (an indexed array with two elements).
More complex edges may be represented as an object. If no additional
information is provided by the method implementation's phpdoc, a 2-tuple
should be assumed.