gives an undirected graph from the directed graph g.
uses rules vw to specify the graph g.
Details and Options
- The undirected edge uv is an edge in the resulting undirected graph if either of the directed edges uv or vu is an edge of g.
- UndirectedGraph works with directed graphs, multigraphs, and mixed graphs.
Examplesopen allclose all
Properties & Relations (4)
An undirected graph can be constructed by a list of UndirectedEdge objects:
Introduced in 2010
|Updated in 2014