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

auto g1 = Graph!(int, int)([1, 2]);

auto e1 = g1.edge(1, 2, 1);

g1 ~= e1;

assert(g1.get(g1.edge(1, 2)) == e1);
assertThrown!MissingEdgeException(g1.get(g1.edge(1, 1)));

Meta