SimpleGraph

SimpleGraph[g]
gives the underlying simple graph from the graph g.

Details and OptionsDetails and Options

  • SimpleGraph[g] removes all self-loops and multiple edges between the same vertices.
  • SimpleGraph preserves directed edges as directed. UndirectedGraph can be used to compute the underlying undirected graph.
  • SimpleGraph works with undirected graphs, directed graphs, multigraphs, and mixed graphs.
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)