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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 2010
(8.0)
| Updated in 2015
(10.3)
Translate this page: