WLJS LogoWLJS Notebook

Graph3D

Graph3D[g] creates a graph with vertices and edges from the graph g and represented as a 3D plot.

  • Graph3D[{e1, e2, …}] creates a graph with edges ej and represented as a 3D plot.
  • Graph3D[{v1, v2, …}, {e1, e2, …}] creates a graph with vertices vi and edges ej.

Examples

Graph3D[CompleteGraph[10]]
Graph3D[{1 <-> 2, 2 <-> 3, 3 <-> 4, 4 <-> 1, 1 <-> 3}]

Please visit the official Wolfram Language Reference for more details.

On this page