EdgeRules

EdgeRules[g]
gives the list of edge rules for the graph g.

EdgeRules[{vw,}]
uses rules vw to specify the graph g.

DetailsDetails

  • EdgeRules[g] returns the list of edge rules in the order used by the graph g.
  • Undirected edges uv and directed edges uv are both represented as the rule u->v.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

The list of edge rules for an explicitly constructed graph:

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

For a parametrically constructed graph:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2010
(8.0)
| Updated in 2015
(10.3)
Translate this page: