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.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »