This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

EdgeList

EdgeList[g]
gives the list of edges for the graph g.
EdgeList
gives a list of edges that match the pattern patt.
  • EdgeList returns the list of edges in the order used by the graph g.
The edge list for an explicitly constructed graph:
The edge list for a parametrically constructed graph:
Find all edges that match a pattern:
The edge list for an explicitly constructed graph:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
The edge list for a parametrically constructed graph:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Find all edges that match a pattern:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
EdgeList works with undirected graphs:
Directed graphs:
Use a pattern to select a subset of edges:
Works with large graphs:
Find all edges with a given property:
EdgeCount can be found using EdgeList:
Edges in EdgeList are given in the same order they are entered for Graph:
Columns of the incidence matrix correspond to EdgeList:
Edges can be explicitly specified in Graph:
A connected graph can be reconstructed from its edge list:
New in 8