TOPICS
Search

Graph Drawing


A graph drawing is a representation of a graph in a geometric space in which distinct vertices are represented by distinct points and each graph edge is represented by a simple curve joining the points corresponding to its endpoints, with no other graph vertex in its interior. A general graph drawing may have graph crossings between edges that do not share an endpoint. This distinguishes a graph drawing from a graph embedding, in which edges intersect only at common endpoints.

The abstract graph specifies which pairs of vertices are adjacent, but not the positions of the points or the shapes of the curves in a drawing. Consequently, the same graph can have many different graph drawings. Drawings are usually made in the plane, although drawings in three or more dimensions are also used.

Special types of graph drawings impose additional geometric conditions. In a good drawing, each pair of edges meets at most once, either at a common endpoint or at a proper graph crossing, and no three edges meet away from vertices. In a circular drawing, all vertices lie on a circle; in a straight line drawing, every graph edge is a line segment; and in an integral drawing, graph edge lengths are integers. A drawing in the plane whose edges meet only at common endpoints is a planar graph embedding. Replacing graph crossings by vertices yields a graph planarization. Graph drawing algorithms seek informative and legible layouts using criteria such as the numbers of graph crossings and bends, drawing area, graph edge lengths, angular resolution, and symmetry (Di Battista et al. 1998, Tamassia 2000).

Graphs can be drawn in the Wolfram Language using Graph[{...}], with layouts specified using the option GraphLayout.

The variation in graph edge lengths can be quantified by the infimum of the longest-to-shortest ratio over planar straight line drawings. Sabaei et al. (2026) proved that its largest value on n-vertex 2-trees is Theta(lnn), where Theta denotes big-Theta notation. The explicit upper bound 4+5|_log_2(2n-3)_| holds for this infimum on every n-vertex graph of treewidth at most two with at least one graph edge, for n>=3. Here |_x_| is the floor function.


See also

Circular Drawing, Good Drawing, Graph Crossing Number, Graph Embedding, Graph Planarization, Integral Drawing, Planar Graph Embedding, Straight Line Drawing, Thrackle, Unit-Distance Embedding

Explore with Wolfram|Alpha

References

Di Battista, G.; Eades, P.; Tamassia, R.; and Tollis, I. G. Graph Drawing: Algorithms for the Visualization of Graphs. Englewood Cliffs, NJ: Prentice-Hall, 1998.Pan, S. and Richter, R. B. "The Crossing Number of K_(11) Is 100." J. Graph Th. 56, 128-134, 2007. https://doi.org/10.1002/jgt.20249.Sabaei, Z.; Emami, F.; and Tousinejad, Y. "Logarithmic Edge-Length Ratios for Planar Drawings of 2-Trees." 20 Oct 2026. https://arxiv.org/abs/2610.28030.Tamassia, R. "Graph Drawing." Ch. 21 in Handbook of Computational Geometry (Ed. J.-R. Sack and J. Urrutia). Amsterdam, Netherlands: North-Holland, pp. 937-971, 2000.

Cite this as:

Weisstein, Eric W. "Graph Drawing." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GraphDrawing.html

Subject classifications