EdgeIndex

EdgeIndex[g,e]

gives the integer index for the edge e in the graph g.

EdgeIndex[{vw,},]

uses rules vw to specify the graph g.

Details

Examples

open allclose all

Basic Examples  (1)

Find the integer index of an edge:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

The index corresponds to the position in the edge list:

In[3]:=
Click for copyable input
Out[3]=

Scope  (4)

Properties & Relations  (5)

Possible Issues  (1)

See Also

VertexIndex  EdgeList  IncidenceMatrix

Introduced in 2010
(8.0)
| Updated in 2015
(10.3)