gives the integer index for the edge e in the graph g.
uses rules vw to specify the graph g.
Examplesopen allclose all
Basic Examples (1)
Find the integer index of an edge:
The index corresponds to the position in the edge list:
EdgeIndex works with undirected graphs:
Use rules to specify the graph:
EdgeIndex works with large graphs:
Properties & Relations (5)
Possible Issues (1)
Some edges do not seem to have integer indices:
Membership is tested using SameQ rather than Equal:
By using identical expressions, the integer index is found:
Introduced in 2010
Updated in 2015