EdgeRules

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

DetailsDetails

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

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)