WLJS LogoWLJS Notebook

SimpleGraph

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

SimpleGraph[{v->w,…}] uses rules v->w to specify the graph g.

Examples

Get the simple graph from a multigraph:

SimpleGraph[Graph[{1 -> 2, 1 -> 2, 2 -> 3}]]

Please visit the official Wolfram Language Reference for more details.

On this page