A directed graph or digraph (from English directed graph ) consists of
- a set of nodes ( English vertex / vertices , often also called corners ) and
- a set of ordered vertex pairs of edges .
The edges of a directed graph are directed edges ( English directed edge / edges , sometimes arcs ). These are often shown as arrows and can only be traversed in one direction. In contrast, the edges of an undirected graph are unordered pairs of nodes . Directed graphs are used to represent objects and the connections between them, for example of finite automata .
It is said that a directed edge goes from to . It is the walk (or start node ) and the head (or end nodes ) from . Furthermore is considered the direct successor of and as the direct predecessor of . If there is a path in a graph from to , a successor to and a predecessor of is considered . The edge is called the flipped or inverted edge of .
A directed graph is called symmetric if every edge also contains the corresponding inverted edge. An undirected graph can easily be converted to a symmetric directed graph by replacing each edge with the two directed edges and .
To get an orientation of a simple undirected graph , each edge has to be assigned a direction. Any directed graph constructed in this way is called an oriented graph . In contrast to the oriented graph, a simply directed graph may contain edges in both directions between two nodes.
The adjacency matrix of a digraph (with loops and multiple edges) is an integer matrix whose rows and columns correspond to the nodes of the digraph. An entry outside the main diagonal indicates the number of edges from node to node , and the entry of the main diagonal corresponds to the number of loops in the node . The adjacency matrix of a digraph is unambiguous except for the interchanging of rows and columns.
A digraph can also be represented by an incidence matrix .
Related directed graphs
A directed graph is called weakly connected (or only connected ) if the underlying graph of , which is obtained by replacing all directed edges with undirected ones, is a connected graph. A directed graph is called strongly connected or strongly if two of its nodes are mutually accessible. A maximal strongly connected subgraph of is a strong component .
Ingress and egress degrees
The number of direct predecessor of a node is in-degree (also internal degrees ) and the number of direct successors output level (or exterior grade called).
The entrance degree of a node in a graph is denoted by and the external degree by . A node with is called a source and a node with is called a sink . A sink is called a universal sink if it has incoming edges from every other node, i.e. if its degree of input is the same .
For directed graphs, the sum of all input degrees is equal to the sum of all output degrees, and both are equal to the sum of the directed edges:
If the equation holds for all nodes , the graph is called a balanced digraph .
Representation of directed graphs
In addition to the naive display of a directed graph by specifying the number of nodes and edges, there are other display options, the so-called edges or node field.
An edge field is a type of representation for directed graphs according to the following scheme:
where the number of nodes, the number of edges and the edges are with .
A node field is a type of representation for directed graphs with the following structure:
where is the number of nodes, the number of edges and the exit degree of the node .
If one looks at the directed graph on the right as an example, then is the edge field and the node field . The numbers in bold indicate the degree of exit.
Classes of directed graphs
Simple directed graphs are directed graphs without loops and without multiple edges.
Complete directed graphs are simple directed graphs in which each pair of nodes is connected by a symmetrical pair of directed edges. This corresponds to an undirected complete graph whose edges are replaced by pairs of directed edges. It follows that a completely directed graph is symmetric.
Oriented graphs are directed graphs without bidirectional edges. It follows that a directed graph is an oriented graph if and only if it does not have a 2-cycle.
Tournament graphs are oriented graphs obtained by choosing a direction for each edge in undirected complete graphs.
A directed acyclic graph or acyclic digraph is a directed graph that does not contain a directed circle . Special cases of directed acyclic graphs are multiple trees (two directed paths of the graph that start from the same start node must not meet in the same end node), oriented trees or poly trees (orientation of an undirected acyclic graph) and root trees (oriented trees with all edges of the underlying undirected tree away from the root node).
Weighted directed graphs or directed networks are simple directed graphs with weights assigned to their edges , similar to weighted graphs, also known as undirected networks or weighted networks.
Commutative diagrams are directed graphs used in category theory, where the nodes represent mathematical objects and the edges mathematical functions , with the property that all directed paths with the same start and end nodelead to the same resultby composition .
The number of simple directed graphs with nodes increases rapidly with the number of nodes and is the same . So it increases exponentially to the number of edges of the complete graph . If the nodes are not numbered, i.e. isomorphic graphs are not counted, this number is roughly proportional to , because for most isomorphism classes all graphs that result from the permutation of the numbered nodes are different. The following table shows the numbers determined with the help of a computer for :
|Number of directed graphs without numbered nodes|
- Jørgen Bang-Jensen, Gregory Gutin: Digraphs: Theory, Algorithms and Applications . Springer, 2000, ISBN 1-85233-268-9 ( rhul.ac.uk ).
- John Adrian Bondy, USR Murty: Graph Theory with Applications . North-Holland, 1976, ISBN 0-444-19451-7 .
- Reinhard Diestel: Graph Theory . 3. Edition. Springer, 2005, ISBN 3-540-26182-6 .
- Frank Harary, Robert Z. Norman, Dorwin Cartwright: Structural Models: An Introduction to the Theory of Directed Graphs . Wiley, New York 1965.
- Reinhard Diestel : Graph theory . 4th edition. Springer, Berlin a. a. 2010, ISBN 978-3-642-14911-5 , pp. 28–30 (English, 4th electronic edition 2010 - first edition: 1996).
- Volker Turau: Algorithmic Graph Theory . 3. Edition. Oldenbourg Wissenschaftsverlag, Munich 2009, ISBN 978-3-486-59057-9 , p. 20-24 .
- Eric W. Weisstein : Oriented Graph . In: MathWorld (English).
- Eric W. Weisstein : Graph Orientation . In: MathWorld (English).
- Reinhard Diestel : Graph theory . 4th edition. Springer, Berlin a. a. 2010, ISBN 978-3-642-14911-5 , pp. 145–168 (English, 4th electronic edition 2010 - first edition: 1996).
- Bang-Jensen, Gutin: Digraphs: Theory, Algorithms and Applications, 2nd edition, 2009, p. 20.
- Bhavanari Satyanarayana, Kuncham Syam Prasad: Discrete Mathematics and Graph Theory . PHI Learning Pvt. Ltd., 2009, ISBN 978-81-203-3842-5 , pp. 460 .
- Richard A. Brualdi: Combinatorial matrix classes . In: Encyclopedia of mathematics and its applications . tape 108 . Cambridge University Press, 2006, ISBN 978-0-521-86565-4 , pp. 51 .
- Follow A000088 in OEIS
- Follow A000088 in OEIS
- Follow A035512 in OEIS