In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, and more specifically in
graph theory
In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conne ...
, a multigraph is 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 discre ...
which is permitted to have
multiple edges
In graph theory, multiple edges (also called parallel edges or a multi-edge), are, in an undirected graph, two or more edges that are incident to the same two vertices, or in a directed graph, two or more edges with both the same tail vertex ...
(also called ''parallel edges''), that is,
edges that have the same
end nodes. Thus two vertices may be connected by more than one edge.
There are two distinct notions of multiple edges:
* ''Edges without own identity'': The identity of an edge is defined solely by the two nodes it connects. In this case, the term "multiple edges" means that the same edge can occur several times between these two nodes.
* ''Edges with own identity'': Edges are primitive entities just like nodes. When multiple edges connect two nodes, these are different edges.
A multigraph is different from a
hypergraph
In mathematics, a hypergraph is a generalization of a graph in which an edge can join any number of vertices. In contrast, in an ordinary graph, an edge connects exactly two vertices.
Formally, an undirected hypergraph H is a pair H = (X,E) wh ...
, which is a graph in which an edge can connect any number of nodes, not just two.
For some authors, the terms ''pseudograph'' and ''multigraph'' are synonymous. For others, a pseudograph is a multigraph that is permitted to have
loops.
Undirected multigraph (edges without own identity)
A multigraph ''G'' is an
ordered pair
In mathematics, an ordered pair (''a'', ''b'') is a pair of objects. The order in which the objects appear in the pair is significant: the ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a'') unless ''a'' = ''b''. (In con ...
''G'' := (''V'', ''E'') with
*''V'' a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of ''vertices'' or ''nodes'',
*''E'' a
multiset
In mathematics, a multiset (or bag, or mset) is a modification of the concept of a set that, unlike a set, allows for multiple instances for each of its elements. The number of instances given for each element is called the multiplicity of that e ...
of unordered pairs of vertices, called ''edges'' or ''lines''.
Undirected multigraph (edges with own identity)
A multigraph ''G'' is an ordered
triple
Triple is used in several contexts to mean "threefold" or a " treble":
Sports
* Triple (baseball), a three-base hit
* A basketball three-point field goal
* A figure skating jump with three rotations
* In bowling terms, three strikes in a row
* ...
''G'' := (''V'', ''E'', ''r'') with
*''V'' a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of ''vertices'' or ''nodes'',
*''E'' a
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of ''edges'' or ''lines'',
*''r'' : ''E'' →
, assigning to each edge an unordered pair of endpoint nodes.
Some authors allow multigraphs to have loops, that is, an edge that connects a vertex to itself, while others call these pseudographs, reserving the term multigraph for the case with no loops.[For example, see Wilson 2002, p. 6 or Chartrand and Zhang 2012, pp. 26-27.]
Directed multigraph (edges without own identity)
A multidigraph is a directed graph
In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs.
Definition
In formal terms, a directed graph is an ordered pa ...
which is permitted to have ''multiple arcs,'' i.e., arcs with the same source and target nodes. A multidigraph ''G'' is an ordered pair ''G'' := (''V'', ''A'') with
*''V'' a set of ''vertices'' or ''nodes'',
*''A'' a multiset of ordered pairs of vertices called ''directed edges'', ''arcs'' or ''arrows''.
A mixed multigraph ''G'' := (''V'', ''E'', ''A'') may be defined in the same way as a mixed graph
In graph theory, a mixed graph is a graph consisting of a set of vertices , a set of (undirected) edges , and a set of directed edges (or arcs) .
Definitions and notation
Consider adjacent vertices u,v \in V. A directed edge, called an arc, ...
.
Directed multigraph (edges with own identity)
A multidigraph or quiver
A quiver is a container for holding arrows, bolts, ammo, projectiles, darts, or javelins. It can be carried on an archer's body, the bow, or the ground, depending on the type of shooting and the archer's personal preference. Quivers were trad ...
''G'' is an ordered 4-tuple ''G'' := (''V'', ''A'', ''s'', ''t'') with
*''V'' a set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of ''vertices'' or ''nodes'',
*''A'' a set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of ''edges'' or ''lines'',
*, assigning to each edge its source node,
*, assigning to each edge its target node.
This notion might be used to model the possible flight connections offered by an airline. In this case the multigraph would be a directed graph
In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs.
Definition
In formal terms, a directed graph is an ordered pa ...
with pairs of directed parallel edges connecting cities to show that it is possible to fly both ''to'' and ''from'' these locations.
In category theory a small category
Category, plural categories, may refer to:
Philosophy and general uses
*Categorization, categories in cognitive science, information science and generally
* Category of being
* ''Categories'' (Aristotle)
* Category (Kant)
* Categories (Peirce) ...
can be defined as a multidigraph (with edges having their own identity) equipped with an associative composition law and a distinguished self-loop at each vertex serving as the left and right identity for composition. For this reason, in category theory the term ''graph'' is standardly taken to mean "multidigraph", and the underlying multidigraph of a category is called its underlying digraph.
Labeling
Multigraphs and multidigraphs also support the notion of graph labeling
In the mathematical discipline of graph theory, a graph labelling is the assignment of labels, traditionally represented by integers, to edges and/or vertices of a graph.
Formally, given a graph , a vertex labelling is a function of to a set o ...
, in a similar way. However there is no unity in terminology in this case.
The definitions of labeled multigraphs and labeled multidigraphs are similar, and we define only the latter ones here.
''Definition 1'': A labeled multidigraph is a labeled graph
In the mathematical discipline of graph theory, a graph labelling is the assignment of labels, traditionally represented by integers, to edges and/or vertices of a graph.
Formally, given a graph , a vertex labelling is a function of to a set ...
with ''labeled'' arcs.
Formally: A labeled multidigraph G is a multigraph with ''labeled'' vertices and arcs. Formally it is an 8-tuple where
*V is a set of vertices and A is a set of arcs.
* and are finite alphabets of the available vertex and arc labels,
* and are two maps indicating the ''source'' and ''target'' vertex of an arc,
* and are two maps describing the labeling of the vertices and arcs.
''Definition 2'': A labeled multidigraph is a labeled graph
In the mathematical discipline of graph theory, a graph labelling is the assignment of labels, traditionally represented by integers, to edges and/or vertices of a graph.
Formally, given a graph , a vertex labelling is a function of to a set ...
with multiple ''labeled'' arcs, i.e. arcs with the same end vertices and the same arc label (note that this notion of a labeled graph is different from the notion given by the article graph labeling
In the mathematical discipline of graph theory, a graph labelling is the assignment of labels, traditionally represented by integers, to edges and/or vertices of a graph.
Formally, given a graph , a vertex labelling is a function of to a set o ...
).
See also
* Multidimensional network
In network theory, multidimensional networks, a special type of ''multilayer network'', are networks with multiple kinds of relations. Increasingly sophisticated attempts to model real-world systems as multidimensional networks have yielded valua ...
* Glossary of graph theory terms
This is a glossary of graph theory. Graph theory is the study of graphs, systems of nodes or vertices connected in pairs by lines or edges.
Symbols
A
B
...
* Graph theory
In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conne ...
Notes
References
*
*
*
*
*
*
*
*
*
*
External links
* {{DADS, Multigraph, multigraph
Extensions and generalizations of graphs
de:Graph (Graphentheorie)#Multigraph