|
|
|
|
Multigraph
|
| |
|
| |
In mathematics, a multigraph or pseudograph is a graph which is permitted to have multiple edges, (also called "parallel edges"), that is, edges that have the same end nodes. Thus two vertices may be connected by more than one edge. Formally, a multigraph G is an ordered pair G:=(V, E) with
Multigraphs might be used to model the possible flight connections offered by an airline.

Discussion
Ask a question about 'Multigraph'
Start a new discussion about 'Multigraph'
Answer questions from other users
|
Encyclopedia
In mathematics, a multigraph or pseudograph is a graph which is permitted to have multiple edges, (also called "parallel edges"), that is, edges that have the same end nodes. Thus two vertices may be connected by more than one edge. Formally, a multigraph G is an ordered pair G:=(V, E) with
- V a set of vertices or nodes,
- E a multiset of unordered pairs of vertices, called edges or lines.
Multigraphs might be used to model the possible flight connections offered by an airline. In this case the pseudograph would be a directed graph with pairs of directed parallel edges connecting cities to show that it is possible to fly both to and from these locations.
Some authors also 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.
A multidigraph is a directed graph 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.
In category theory a small category can be defined as a multidigraph 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.
A mixed multigraph G:=(V,E, A) may be defined in the same way as a mixed graph.
Labeling
Multigraphs and multidigraphs also support the notion of graph labeling, 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 with labeled arcs.
Formally: A labeled multidigraph G is a multigraph with labeled nodes and arcs. Formally it is an 8-tuple where
- V is a set of nodes and A is a multiset of arcs.
- and are finite alphabets of the available node and arc labels,
- and are two maps indicating the source and target node of an arc,
- and are two maps describing the labeling of the nodes and edges.
Definition 2: A labeled multidigraph is a labeled graph with multiple labeled edges, i.e. edges with the same end nodes and the same edge label (note that this notion of a labeled graph is different from the notion given by the article graph labeling).
External links
|
| |
|
|