Returns the index of node n in the list of nodes.
auto g1 = Graph!(int, int)([1, 2]); assert(g1.indexOf(1) == 0); assert(g1.indexOf(2) == 1); assertThrown!MissingNodeException(g1.indexOf(3));
See Implementation
Returns the index of node n in the list of nodes.