System'

PlanarGraph

PlanarGraph[{e1,e2,}]

yields a planar graph with edges ej.

PlanarGraph[{v1,v2,},{e1,e2,}]

yields a planar graph with vertices vi and edges ej.

PlanarGraph[{,wi[vi],},{,wj[ej],}]

yields a planar graph with vertex and edge properties defined by the symbolic wrappers wk.

PlanarGraph[{vivj,}]

uses rules vivj to specify a planar graph.

Details and Options

  • PlanarGraph generates a Graph object.
  • A graph is planar if it can be drawn in the plane without edge crossings.
  • Out[31]=
  • PlanarGraph displays the graph using a planar embedding if possible.
  • PlanarGraph supports the same vertices, edges, and wrappers as Graph.
  • PlanarGraph takes the same options as Graph, with GraphLayout methods restricted to "PlanarEmbedding" and "TutteEmbedding".

Examples

open allclose all

Basic Examples  (2)

A planar graph:

In[1]:=
Click for copyable input
Out[1]=

The three-dimensional HypercubeGraph is planar:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

A planar drawing:

In[3]:=
Click for copyable input
Out[3]=

Scope  (25)

Options  (80)

See Also

Graph  UndirectedEdge  DirectedEdge  PlanarGraphQ  GridGraph  CycleGraph  HypercubeGraph  StarGraph  WheelGraph  VoronoiMesh  DelaunayMesh

Introduced in 2016
(10.4)