https://en.wikipedia.org/wiki/Glossary_of_graph_theory_terms
- Acyclic graph
- Acyclic coloring
- Adjacency
- Adjacency matrix
- Arborescence
- Arc
- Arrow
- Anti-arborescence
- Automorphism of a graph
- Balanced graph
- Biconnected graph
- Bipartite graph
- Biregular
- Block of a graph
- Block-cut graph
- Block graph
- Bridge
- Bridge of a cycle
- Bridged graph
- Bridgeless graph
- Butterfly graph
- Butterfly network
- Cactus graph
- Chord
- Circuit
- Clique
- Closed trail
- Closed walk
- Complete graph
- Connected graph
- Cost
- Cycle
- Cycle graph
- Cycle space
- Digon
- Directed acyclic graph
- Degree
- Directed path
- Distance
- Eccentricity
- Edge
- Empty graph
- Endpoint
- Eulerian graph
- Euler tour
- Euler circuit
- Finite walk
- Girth of a graph
- Graph
- Homomorphism degree
- Forest
- Incidence
- Infinite walk
- Induced graph
- Inverted arrow
- k-cycle
- Line
- Line graph
- Neighbor
- Neighborhood
- Null graph
- Open walk
- Order of a graph
- Path
- Path graph
- Peripheral cycle
- Planar graph
- Predecessor (vertex)
- Ray
- Quiver
- Rooted tree
- Semi-infinite walk
- Simple path
- Simple cycle
- Size
- Sparse graph
- Spanning subgraph
- Spanning tree
- Strongly connected graph
- Strongly Connected components
- Subgraph
- Subforest
- Successor (vertex)
- Subtree
- Topological order
- Tour
- Trail
- Tree
- Triangle
- Walk
- Weight
- Weighted graph
A graph is acyclic if it has no cycles. An undirected acyclic graph is also called a forest.
An acyclic coloring of an undirected graph is a proper coloring in which every two color classes induce a forest.
Adjacency is a relation between two vertices or between two edges.
- Two vertices are adjacent if they are the endpoints of the same edge.
- Two edges are adjacent if they share an endpoint.
An adjacency matrix is a way to represent a graph, where rows (indexed by i
) and columns (indexed by j
) are both indexed by vertices. A cell[i][j] contains a 1
if the vertices i
and j
are adjacent, otherwise a 0
.
A directed rooted out-tree.
An edge in a directed graph; an arc is an ordered pairs of vertices, ⟨a,b⟩
.
An arrow is an ordered pair of vertices, such as an edge in a directed graph. An arrow (x, y)
has a tail x
, a head y
, and a direction from x
to y
; y
is said to be the direct successor to x
, and x
the direct predecessor to y
. The arrow (y, x)
is the inverted arrow of the arrow (x, y)
.
A directed rooted in-tree.
A graph automorphism is a symmetry of a graph; it is an isomorphism from the graph to itself.
A bipartite (multipartite) graph is balanced if each two subsets of its vertex partition have sizes within one of each other.
A graph is called biconnected if it cannot be disconnected by removal of a single vertex. Usually a synonym for 2-vertex-connected, but sometimes includes K-2 though it is not 2-connected.
A bipartite graph is a graph whose vertices can be divided into two disjoint sets such that the vertices in one set are not connected to each other, but may be connected to vertices in the other set. In other words, such graph is 2-colorable; or, such graph has no odd length cycles.
A biregular graph is a bipartite graph in which there are only two different vertex degrees, one for each set of the vertex bipartition.
- A block of a graph
G
is a maximal subgraph which is either an isolated vertex, a bridge edge, or a 2-connected subgraph. If a block is 2-connected, every pair of vertices in it belong to a common cycle. Every edge of a graph belongs in exactly one block. - The block graph of a graph
G
is another graph whose vertices are the blocks ofG
, with an edge connecting two vertices when the corresponding blocks share an articulation point; that is, it is the intersection graph of the blocks ofG
. The block graph of any graph is a forest.
The block-cut (or block-cutpoint) graph of a graph G
is a bipartite graph where one partite set consists of the cut-vertices of G
, and the other has a vertex bᵢ Bᵢ
of G
. When G
is connected, its block-cutpoint graph is a tree.
A block graph (in connected graphs also called a clique tree) is a graph all of whose blocks are complete graphs. A forest is a block graph; so in particular the block graph of any graph is a block graph, and every block graph may be constructed as the block graph of a graph.
- A bridge (cut edge, isthmus) is an edge whose removal would disconnect the graph.
- Especially in the context of planarity testing, a bridge of a cycle is a maximal subgraph that is disjoint from the cycle and in which each two edges belong to a path that is internally disjoint from the cycle.
- A bridge of a cycle can also mean a path that connects two vertices of a cycle but is shorter than either of the paths in the cycle connecting the same two vertices.
A bridged graph is a graph in which every cycle of four or more vertices has a bridge.
A bridgeless graph is a graph that has no bridge edges; that is, a 2-edge-connected graph.
The butterfly graph has 5 vertices and 6 edges; it is formed by 2 triangles that share a vertex.
The butterfly network is a graph used as a network architecture in distributed computing, closely related to the cube-connected cycles.
A cactus graph (cactus, cactus tree, Husimi tree) is a connected graph in which each edge belongs to at most one cycle. Its blocks are cycles or single edges. If, in addition, each vertex belongs to at most two blocks, then it is called a Christmas cactus.
A chord is a one-edge bridge.
A circuit is a closed trail.
A clique is a set of mutually adjacent vertices.
see Tour
A walk is a sequence of edges which joins a sequence of vertices. In a closed walk the first and last vertices are the same.
- A complete graph is one in which every two vertices are adjacent: all edges that could exist are present.
A graph is connected if it has a path between each pair of vertices.
see Weight
A cycle is a non-empty path from a node to itself. A cycle may either refer to a closed walk (i.e. a tour), or, more specifically, to a simple cycle. In either case, the choice of the first vertex is usually considered unimportant: cyclic permutations of the walk produce the same cycle. Important special cases of cycles include Hamiltonian cycles, induced cycles, peripheral cycles.
A cycle graph is a graph that is itself a simple cycle; a cycle graph with n
vertices is commonly denoted Cn
.
The cycle space is a vector space generated by simple cycles in a graph.
A 2-cycle is a digon.
Directed acyclic graph (DAG) is a directed graph without cycles. All out-trees are DAGs (but not vice versa). DAGs are used to represent structures with dependencies (scheduler, build system, compiler). Algorithms that commonly operate on DAGs include finding the shortest path and producing a topological ordering of nodes.
The degree (valency) of a vertex in a graph is the number of its incident edges. In a directed graph, the in-degree is the number of incoming edges, and out-degree is the number of outgoing ones. The degree of vertex v
in graph G
is denoted dG(v)
, d(G)
, or deg(v)
. The maximum degree of a graph G
(or just the degree) is the maximum of the degrees of its vertices, often denoted Δ(G)
. The minimum degree of G
is the minimum of its vertex degrees, often denoted δ(G)
. The total degree of a graph is the sum of the degrees of all its vertices (by the handshaking lemma this number is even). The degree sequence of a graph is the collection of degrees of all vertices, sorted from largest to smallest.
A path in which all the edges have the same direction. If a directed path leads from vertex x
to vertex y
, then x
is a predecessor of y
and y
is a successor of x
; also, y
is said to be reachable from x
.
The distance between any two vertices in a graph is the length of the shortest path having the two vertices as its endpoints.
The eccentricity of a vertex is the farthest distance from it to any other vertex.
An edge has two vertices to which it is attached, called its endpoints. A line is an undirected edge, represented as a set (unordered pair) of vertices. An arc or arrow is a directed edge, represented as an ordered pair of vertices.
A graph with no edges, composed entirely of one or more vertices.
Endpoints are vertices of an edge. Every edge e = (v₁,v₂)
in a graph G = (E,V)
has two endpoints, v₁
and v₂
; we say that the vertices v₁
and v₂
are incident to the edge e
.
A graph that has an Euler tour.
A Euler tour or circuit is a tour that traverses all the edges of a graph.
A Euler circuit or tour is a tour that traverses all the edges of a graph.
A finite walk is an finite sequence of edges, as opposed to an infinite walk that has no first or last vertex.
The girth of a graph is the length of its shortest cycle.
The fundamental object of study in graph theory, a system of vertices connected in pairs by edges. Often subdivided into directed graphs or undirected graphs according to whether the edges have an orientation or not. Mixed graphs include both types of edges. In graph theory, a graph is a structure consisting of a related set of objects, called vertices and represented by circles, and a relation involving a pair of objects is represented by connecting then with a line which is called an edge.
The homomorphism degree of a graph, or its Hadwiger number, is the order of the largest clique minor.
A forest is an undirected graph without cycles (a disjoint union of unrooted trees), or a directed graph formed as a disjoint union of rooted trees.
An incidence in a graph is a vertex-edge pair such that the vertex is an endpoint of the edge.
An infinite walk is an infinite sequence of edges but with no first or last vertex.
G[S]
is the induced subgraph of a graph G
for vertex subset S
. An induced subgraph (full subgraph) of a graph is a subgraph formed from a subset of vertices, and from all of the edges whose endpoints belong to the vertex subset. Special cases include induced paths - induced subgraphs that are paths, and induced cycles - induced subgraphs that are cycles.
The arrow (y, x)
is the inverted arrow of the arrow (x, y)
.
A k
-cycle is a cycle of length k
.
An edge in an undirected graph; a line is unordered pairs of vertices, {a,b}
.
A line graph of an undirected graph G
is another graph L(G)
that represents the adjacencies between edges of G
. L(G)
is constructed in the following way: for each edge in G
, make a vertex in L(G)
; for every two edges in G
that have a vertex in common, make an edge between their corresponding vertices in L(G)
.
A vertex that is adjacent to a given vertex.
The open neighborhood of a vertex v
is the subgraph induced by all vertices that are adjacent to v
. The closed neighbourhood is defined in the same way but also includes v
itself. The open neighborhood of v
in G
may be denoted NG(v)
or N(v)
, and the closed neighborhood may be denoted NGv
or Nv
. When the openness or closedness of a neighborhood is not specified, it is assumed to be open.
May refer either to the order-zero graph; alternatively, an edgeless graph or an empty graph.
A walk is a sequence of edges which joins a sequence of vertices. In an open walk the first and last vertices are distinct.
The order of a graph is the number of its vertices.
A path is a sequence of adjacent vertices and edges (a sequence from the first to the last node). This is the same as a walk, so some authors further require that all the edges are distinct.
A path graph (linear graph) on 3 vertices: o-------o-------o
. Its vertices are linearly distributed along a path.
A peripheral cycle is a cycle with at most one bridge; it must be a face in any planar embedding of its graph.
In graph theory, a planar graph is a graph that can be embedded in the plane; it can be drawn on the plane so that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cross each other. Such a drawing is called a plane graph or planar embedding of the graph.
A vertex coming before a given vertex in a directed path.
see semi-infinite walk
A quiver is a directed graph where loops and multiple arrows between two vertices are allowed, i.e. a multidigraph. They are commonly used in representation theory: a representation V
of a quiver assigns a vector space V(x)
to each vertex x
of the quiver and a linear map V(a)
to each arrow a
.
A rooted tree has a designated root node, where every edge either points away from the root node (out-tree, arborescence), or towards the root node (in-tree, anti-arborescene).
A semi-infinite walk, or a ray, is walk with the first vertex but without the last one.
Some authors do not require that all vertices of a path be distinct; they use the term "simple path" for a path with all distinct vertices.
A simple cycle is a closed walk without repeated vertices, and consequently, edges.
The size of a graph is the number of its edges.
A graph with a relatively small number of edges compared to the number of vertices is sparse. Under a stricter definition, all its subgraphs must also be sparse.
A spanning subgraph is a subgraph that includes all vertices of the graph.
A spanning tree T
of an undirected graph G
is a subgraph that is a tree which includes all of the vertices of G
. In general, a graph may have several spanning trees, but a graph that is not connected will not contain a spanning tree. If all of the edges of G
are also edges of a spanning tree T
of G
, then G
is a tree and is identical to T
; that is, a tree has a unique spanning tree and it is itself.
A directed graph is strongly-connected if there is a directed path in each direction between each pair of vertices.
In directed graphs, a graph is said to be strongly connected if every vertex is reachable from every other vertex. The SCCs of an arbitrary directed graph form a partition into subgraphs that are themselves strongly connected. It is possible to test the strong connectivity of a graph, or to find its SCCs, in linear time, Θ(V+E)
.
A subgraph of a graph G
is another graph formed from a subset of the vertices and edges of G
. The vertex subset must include all endpoints of the edge subset (it may also include additional vertices). A spanning subgraph is one that includes all vertices of the graph; an induced subgraph is one that includes all the edges whose endpoints belong to the vertex subset.
A subgraph of a forest.
A vertex coming after a given vertex in a directed path.
A subtree is a connected subgraph of a tree. Sometimes, for rooted trees, subtrees are defined to be a special type of connected subgraph, formed by all vertices and edges reachable from a chosen vertex.
A topological ordering of nodes tells you how to process the nodes of a graph (especially a DAG) so you don't perform a task before first having completed all its dependencies.
A tour (closed trail) is a walk that starts and ends at the same vertex and has no repeated edges.
A trail is a walk in which all edges are distinct. A path is a trail in which all vertices (and therefore also all edges) are distinct.
A tree is undirected graph with no cycles. Equivalently, a tree is a connected graph with n
nodes and n - 1
edges.
A 3-cycle is a triangle.
A walk (chain) is a sequence of edges which joins a sequence of vertices. In an open walk the first and last vertices are distinct; in a closed walk, they are the same. An infinite walk is a sequence of edges but with no first or last vertex. A semi-infinite walk (ray) has a first vertex but no last vertex. A trail is a walk in which all edges are distinct. A path is a trail in which all vertices (and therefore also all edges) are distinct.
A generic term for (usually) numerical value assigned to vertices or edges, representing some bias (cost) that influences graph traversal. For example, while unweighted graph may be concerned with finding the shortest path between two points, a weighted graph may be concerned with finding the cheapest path instead. The weight of a graph is the sum of the weights of the vertices or edges within that graph.The weight of a subgraph is the sum of the weights of the vertices or edges within that subgraph.
A graph whose vertices or edges have been assigned weights; more specifically, a vertex-weighted graph has weights on its vertices, and an edge-weighted graph has weights on its edges.