Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Representation and Properties > EdgeRules >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Representation and Properties > EdgeRules >

EdgeRules

EdgeRules[g]
gives the list of edge rules for the graph g.
  • 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 .
The list of edge rules for an explicitly constructed graph:
For a parametrically constructed graph:
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]=
In[2]:=
Click for copyable input
Out[2]=
EdgeRules works with undirected graphs:
Directed graphs:
Works with large graphs:
EdgeRules gives rules for undirected graphs:
Reconstruct the undirected graph:
EdgeRules gives rules for directed graphs:
Reconstruct the directed graph:
Rules cannot represent isolated vertices:
Reconstructing the graph from EdgeRules excludes isolated vertices:
Including the vertex list reconstructs the full graph:
EdgeRules can be found using EdgeList:
EdgeCount can be found using EdgeRules:
Rules are given in the same order they are entered for Graph:
Edge rules can be explicitly specified in Graph:
Use EdgeRules to extract PropertyValue of edges:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF