gives the list of edge rules for the graph g.
uses rules vw to specify the graph g.
- 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.
Examplesopen allclose all
Basic Examples (2)
Properties & Relations (8)
EdgeRules gives rules for undirected graphs:
EdgeRules gives rules for directed graphs:
Reconstructing the graph from EdgeRules excludes isolated vertices:
Rules are given in the same order they are entered for Graph:
Edge rules can be explicitly specified in Graph: