WLJS LogoWLJS Notebook

GraphPlot

GraphPlot[g] generates a plot of the graph g. Works with adjacency lists, rules, or matrices.

Examples

Plot a simple graph:

GraphPlot[{1 -> 2, 2 -> 3, 3 -> 1}]

From adjacency matrix:

GraphPlot[{{0, 1, 1}, {1, 0, 1}, {1, 1, 0}}]

With styling:

GraphPlot[{a -> b, b -> c}, VertexLabeling -> True]

Please visit the official Wolfram Language Reference for more details.

On this page