
In
graph drawing
Graph drawing is an area of mathematics and computer science combining methods from geometric graph theory and information visualization to derive two-dimensional depictions of graph (discrete mathematics), graphs arising from applications such ...
, a circular layout is a style of drawing that places the
vertices of a
graph
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discret ...
on a
circle
A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
, often evenly spaced so that they form the vertices of a
regular polygon
In Euclidean geometry, a regular polygon is a polygon that is Equiangular polygon, direct equiangular (all angles are equal in measure) and Equilateral polygon, equilateral (all sides have the same length). Regular polygons may be either ''convex ...
.
Applications
Circular layouts are a good fit for communications
network topologies
Network topology is the arrangement of the elements ( links, nodes, etc.) of a communication network. Network topology can be used to define or describe the arrangement of various types of telecommunication networks, including command and cont ...
such as
star
A star is a luminous spheroid of plasma (physics), plasma held together by Self-gravitation, self-gravity. The List of nearest stars and brown dwarfs, nearest star to Earth is the Sun. Many other stars are visible to the naked eye at night sk ...
or
ring network
A ring network is a network topology in which each node connects to exactly two other nodes, forming a single continuous pathway for signals through each node – a ring. Data travels from node to node, with each node along the way handling eve ...
s, and for the cyclic parts of
metabolic network
A metabolic network is the complete set of metabolic and physical processes that determine the physiological and biochemical properties of a cell. As such, these networks comprise the chemical reactions of metabolism, the metabolic pathways, as ...
s. For graphs with a known
Hamiltonian cycle
In the mathematics, mathematical field of graph theory, a Hamiltonian path (or traceable path) is a path (graph theory), path in an undirected or directed graph that visits each vertex (graph theory), vertex exactly once. A Hamiltonian cycle (or ...
, a circular layout allows the cycle to be depicted as the circle, and in this way circular layouts form the basis of the
LCF notation for Hamiltonian
cubic graph
In the mathematical field of graph theory, a cubic graph is a graph in which all vertices have degree three. In other words, a cubic graph is a 3-regular graph. Cubic graphs are also called trivalent graphs.
A bicubic graph is a cubic bip ...
s.
A circular layout may be used on its own for an entire graph drawing, but it also may be used as the layout for smaller clusters of vertices within a larger graph drawing, such as its
biconnected component
In graph theory, a biconnected component or block (sometimes known as a 2-connected component) is a maximal biconnected subgraph. Any connected graph decomposes into a tree of biconnected components called the block-cut tree of the graph. Th ...
s, clusters of
gene
In biology, the word gene has two meanings. The Mendelian gene is a basic unit of heredity. The molecular gene is a sequence of nucleotides in DNA that is transcribed to produce a functional RNA. There are two types of molecular genes: protei ...
s in a gene interaction graph, or natural subgroups within a
social network
A social network is a social structure consisting of a set of social actors (such as individuals or organizations), networks of Dyad (sociology), dyadic ties, and other Social relation, social interactions between actors. The social network per ...
. If multiple vertex circles are used in this way, other methods such as
force-directed graph drawing
Force-directed graph drawing algorithms are a class of algorithms for drawing graphs in an aesthetically-pleasing way. Their purpose is to position the nodes of a graph in two-dimensional or three-dimensional space so that all the edges are of ...
may be used to arrange the clusters.
One advantage of a circular layout in some of these applications, such as
bioinformatic
Bioinformatics () is an interdisciplinary field of science
Science is a systematic discipline that builds and organises knowledge in the form of testable hypotheses and predictions about the universe. Modern science is typically divi ...
s or social network visualization, is its neutrality: by placing all vertices at equal distances from each other and from the center of the drawing, none is given a privileged position, countering the tendency of viewers to perceive more centrally located nodes as being more important.
Edge style
The edges of the drawing may be depicted as
chords
Chord or chords may refer to:
Art and music
* Chord (music), an aggregate of musical pitches sounded simultaneously
** Guitar chord, a chord played on a guitar, which has a particular tuning
* The Chords (British band), 1970s British mod ...
of the circle, as circular arcs
(possibly perpendicular to the vertex circle, so that the edges model lines of the
Poincaré disk model
In geometry, the Poincaré disk model, also called the conformal disk model, is a model of 2-dimensional hyperbolic geometry in which all points are inside the unit disk, and straight lines are either circular arcs contained within the disk t ...
of
hyperbolic geometry
In mathematics, hyperbolic geometry (also called Lobachevskian geometry or János Bolyai, Bolyai–Nikolai Lobachevsky, Lobachevskian geometry) is a non-Euclidean geometry. The parallel postulate of Euclidean geometry is replaced with:
:For a ...
), or as other types of curve.
[.]
The visual distinction between the inside and the outside of the vertex circle in a circular layout may be used to separate two different styles of edge drawing. For instance, a circular drawing algorithm of uses edge bundling within the circle, together with some edges that are not bundled, drawn outside the circle.
For circular layouts of
regular graph
In graph theory, a regular graph is a Graph (discrete mathematics), graph where each Vertex (graph theory), vertex has the same number of neighbors; i.e. every vertex has the same Degree (graph theory), degree or valency. A regular directed graph ...
s, with edges drawn both inside and outside as
circular arcs, the
angle of incidence of one of these arcs with the vertex circle is the same at both ends of the arc, a property that simplifies the optimization of the
angular resolution
Angular resolution describes the ability of any image-forming device such as an Optical telescope, optical or radio telescope, a microscope, a camera, or an Human eye, eye, to distinguish small details of an object, thereby making it a major det ...
of the drawing.
[.]
Number of crossings
Several authors have studied the problem of finding a
permutation
In mathematics, a permutation of a set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example of the first mean ...
of the vertices of a circular layout that minimizes the
number of edge crossings when all edges are drawn inside the vertex circle. This number of crossings is zero only for
outerplanar graphs. For other graphs, it may be optimized or reduced separately for each
biconnected component
In graph theory, a biconnected component or block (sometimes known as a 2-connected component) is a maximal biconnected subgraph. Any connected graph decomposes into a tree of biconnected components called the block-cut tree of the graph. Th ...
of the graph before combining the solutions, as these components may be drawn so that they do not interact. In general, minimizing the number of crossings is
NP-complete
In computational complexity theory, NP-complete problems are the hardest of the problems to which ''solutions'' can be verified ''quickly''.
Somewhat more precisely, a problem is NP-complete when:
# It is a decision problem, meaning that for any ...
.
described an
approximation algorithm
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
based on
balanced cuts or edge separators, subsets of few edges whose removal disconnects the given graph into two subgraphs with approximately equal numbers of vertices. After finding an approximate cut, their algorithm arranges the two subgraphs on each side of the cut recursively, without considering the additional crossings formed by the edges that cross the cut. They prove that the number of crossings occurring in the resulting layout, on a graph
with
vertices, is
where
is the optimal number of crossings and
is the approximation ratio of the balanced cut algorithm used by this layout method. Their work cites a paper by
Fan Chung and
Shing-Tung Yau
Shing-Tung Yau (; ; born April 4, 1949) is a Chinese-American mathematician. He is the director of the Yau Mathematical Sciences Center at Tsinghua University and professor emeritus at Harvard University. Until 2022, Yau was the William Caspar ...
from 1994 that claimed
, but this was later found to have an erroneous proof. Instead, the best approximation known for the balanced cut problem has
, giving this circular layout algorithm an
approximation ratio
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
of
on graphs that have a large number of crossings relative to their
vertex degrees.
Heuristic methods for reducing the crossing complexity have also been devised, based e.g. on a careful vertex insertion order and on
local optimization. A circular layout may also be used to maximize the number of crossings. In particular, choosing a
random permutation
A random permutation is a sequence where any order of its items is equally likely at random, that is, it is a permutation-valued random variable of a set of objects. The use of random permutations is common in games of chance and in randomized alg ...
for the vertices causes each possible crossing to occur with probability 1/3, so the
expected number of crossings is within a factor of three of the maximum number of crossings among all possible layouts.
Derandomizing this method gives a
deterministic
Determinism is the metaphysical view that all events within the universe (or multiverse) can occur only in one possible way. Deterministic theories throughout the history of philosophy have developed from diverse and sometimes overlapping mo ...
approximation algorithm
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
with
approximation ratio
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
three.
Other optimization criteria
Along with crossings, circular versions of problems of optimizing the lengths of edges in a circular layout, the angular resolution of the crossings, or the
cutwidth (the maximum number of edges that connects one arc of the circle to the opposite arc) have also been considered, but many of these problems are NP-complete.
[.]
See also
*
Chord diagram (information visualization)
A chord diagram is a graphical method of displaying the inter-relationships between data in a Matrix (mathematics), matrix. The data are arranged radially around a circle with the relationships between the data points typically drawn as arcs conne ...
, a closely related concept in information visualization
*
Planarity
Planarity is a 2005 puzzle computer game by John Tantalo, based on a concept by Mary Radcliffe at Western Michigan University.
The name comes from the concept of planar graphs in graph theory; these are graphs that can be embedded in the Euclide ...
, a puzzle in which a player must move vertices to untangle a drawing of a
planar graph
In graph theory, a planar graph is a graph (discrete mathematics), graph that can be graph embedding, embedded in the plane (geometry), plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. ...
, starting from a randomized circular layout
External links
Circular layout engine of Graphviz
Notes
References
*
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*. As cited by .
*.
*.
*.
*
*.
*.
*.
*.
{{refend
Graph drawing
Circles