Graph.get

Get the designated edge from this graph. Only the start and end node will be compared.

struct Graph(Node, Weight = void, Flag!"isDirected" isDirected = No.isDirected, EdgePayload = void)
ref
get
()

Examples

1 auto g1 = Graph!(int, int)([1, 2]);
2 
3 auto e1 = g1.edge(1, 2, 1);
4 
5 g1 ~= e1;
6 
7 assert(g1.get(g1.edge(1, 2)) == e1);
8 assertThrown!MissingEdgeException(g1.get(g1.edge(1, 1)));

Meta