Log in Sign up
Back to Discover
🔢

Directed graph

math Maturity 11-13

Dots can be joined by lines.

Directed graph no background.svg
Directed graph no background.svg
These lines have arrows. The arrows show which way to go. You follow the arrow from one dot to the next. It is like a map for paths. Can you follow the arrows?
DirectedDegrees.svg
DirectedDegrees.svg

44 words

Imagine dots on a page.

Directed graph no background.svg
Directed graph no background.svg
We call these dots vertices. We can join them with lines. These lines have arrows on them. They are called arcs.
DirectedDegrees.svg
DirectedDegrees.svg
The arrows show a path. They tell you which way to move. One dot can be a start. We call that a source. Another dot can be an end. We call that a sink. Some arrows even point back to the same dot. These are called loops. You can use these to map paths.

85 words

Imagine dots on a page.

Directed graph no background.svg
Directed graph no background.svg
We call these dots vertices. We can join them with lines. These lines have arrows on them. We call these arrows arcs. The arrows show a path. They tell you which way to move. One dot can be a start. We call that a source. Another dot can be an end. We call that a sink.
DirectedDegrees.svg
DirectedDegrees.svg

An arc has a tail and a head. The tail is the start. The head is the end. A dot can also have a loop. A loop is an arrow that connects a dot to itself.

Directed acyclic graph 2.svg
Directed acyclic graph 2.svg
Some graphs have no loops. These are called simple directed graphs. Some graphs have no paths that go in a circle. We call these directed acyclic graphs.

We can also count the arrows at each dot. The indegree is the number of arrows pointing in. The outdegree is the number of arrows pointing out.

4-tournament.svg
4-tournament.svg
In a tournament graph, every pair of dots has one arrow between them. This helps us study how things connect and flow.

183 words

Imagine a map where every path has a one-way sign. In mathematics, this is called a directed graph, or a digraph. It is made of two main parts. The first part is a set of dots called vertices, nodes, or points.

Directed graph no background.svg
Directed graph no background.svg
The second part is a set of arrows called arcs or directed edges. These arrows are very important because they show direction. An ordinary graph just has lines that connect dots without a specific direction. In a directed graph, the arrows tell you exactly how to move from one point to another.

Every arrow has a specific start and end. We call the starting point the tail of the arc. The ending point is called the head of the arc.

Incidence matrix - directed graph.svg
Incidence matrix - directed graph.svg
Because of this, we can describe how points relate to each other. If an arrow goes from point X to point Y, then Y is the successor of X. This also means X is the predecessor of Y. If you can follow a string of arrows to get from one dot to another, we say those points are reachable.
DirectedDegrees.svg
DirectedDegrees.svg
Some arrows even form loops by connecting a dot directly back to itself.

There are many different kinds of directed graphs. A simple directed graph has no loops and no extra arrows between the same two points. If a graph has multiple arrows between the same points, it is called a directed multigraph. Some graphs are special because they have no cycles, which means you can never follow arrows in a circle. These are called directed acyclic graphs, or DAGs.

Directed acyclic graph 2.svg
Directed acyclic graph 2.svg
Another type is a tournament. In a tournament, every single pair of dots has exactly one arrow connecting them.
4-tournament.svg
4-tournament.svg

We can also use math to count the arrows at each vertex. The indegree is the number of arrow heads pointing at a dot. The outdegree is the number of tails pointing away from a dot.

DirectedDegrees.svg
DirectedDegrees.svg
If a dot has an indegree of zero, we call it a source because it only sends arrows out. If a dot has an outdegree of zero, it is called a sink because arrows only end there. Scientists use these ideas to study many things. For example, computer scientists use control-flow graphs to show how a computer program moves through different steps.

Directed graphs help us understand how things flow and connect. They are used in many different areas of science and math. In computer science, they can represent the paths a program takes. In other areas, they can represent signal-flow or even how items move through a network.

Directed graph no background.svg
Directed graph no background.svg
Whether we are looking at a simple map or a complex system of equations, these dots and arrows help us see the hidden patterns of movement in our world.

473 words

In the field of mathematics, specifically within graph theory, a directed graph is a structured way to model connections that have a specific direction. Also known as a digraph, this mathematical object consists of two primary components. The first is a set of elements called vertices, nodes, or points. The second is a set of ordered pairs of these vertices, which are known as arcs, directed edges, or arrows.

Directed graph no background.svg
Directed graph no background.svg
Unlike an undirected graph, where connections are simply links between points, a digraph uses the order of the pairs to establish a clear sense of movement. This distinction allows mathematicians to model systems where the relationship between two points is not necessarily mutual.

To understand how a digraph functions, one must look at the anatomy of its arcs. Every arc has a specific starting point and a specific ending point. The starting point is formally called the tail, while the ending point is known as the head.

Incidence matrix - directed graph.svg
Incidence matrix - directed graph.svg
Because of this structure, we can define the relationship between vertices using terms like predecessor and successor. If an arc travels from vertex X to vertex Y, then X is the direct predecessor of Y, and Y is the direct successor of X. If a sequence of arcs allows you to travel from one vertex to another, the destination is said to be reachable from the starting point. Some digraphs even include loops, which are arcs that connect a vertex directly back to itself.

Directed graphs can be categorized into several distinct types based on their specific properties. A simple directed graph is one that contains no loops and no multiple arrows sharing the same source and target nodes. If a graph allows multiple arrows between the same two points, it is classified as a directed multigraph. Some graphs are defined by the absence of cycles, which are paths that return to their starting point. These are called directed acyclic graphs, or DAGs.

Directed acyclic graph 2.svg
Directed acyclic graph 2.svg
Another specialized type is the tournament. A tournament is an oriented graph created by assigning a single direction to every edge in an undirected complete graph.
4-tournament.svg
4-tournament.svg
This results in a semicomplete digraph where every pair of vertices is connected by exactly one arc.

Mathematical properties can also be used to classify these structures, such as symmetry and transitivity. A symmetric directed graph is one where every arc has a corresponding inverse arc traveling in the opposite direction. In these graphs, every connection is essentially bidirected. There are also quasi-transitive digraphs, which follow a specific rule regarding triples of vertices. In a quasi-transitive digraph, if there is an arc from vertex X to Y and an arc from Y to Z, there must also be an arc from X to Z. This creates a predictable flow within the network, similar to how certain logical arguments or hierarchies function.

We can quantify the connectivity of a vertex by measuring its indegree and outdegree. The indegree, denoted as deg−(v), is the number of arrow heads adjacent to a vertex. The outdegree, denoted as deg+(v), is the number of tails adjacent to that vertex.

DirectedDegrees.svg
DirectedDegrees.svg
These numbers allow us to identify special roles within a network. A vertex with an indegree of zero is called a source, as it only serves as an origin for outgoing arcs. Conversely, a vertex with an outdegree of zero is called a sink, because it only receives incoming arcs. The sum of all indegrees in a digraph will always equal the sum of all outdegrees, a fundamental rule known as the degree sum formula.

Beyond simple connections, digraphs can be enhanced with additional data to create more complex models. Weighted directed graphs, often called directed networks, assign specific numerical weights to each arc. This is useful in flow networks, where two specific nodes are distinguished as a source and a sink to represent the movement of resources. In computer science, control-flow graphs are used as rooted digraphs to represent the various paths a computer program might take during execution. These models help engineers visualize and predict how software will behave under different conditions.

Directed graphs serve as essential tools across a vast range of scientific and mathematical disciplines. In category theory, commutative diagrams use digraphs to represent mathematical objects and morphisms. In the study of Lie groups, a structure called a quiver uses a directed graph to characterize a representation. They are also used in signal-flow graphs to represent functional connections between system variables. Whether they are modeling the logic of a computer program or the complex flows of a physical network, directed graphs provide a precise language for describing the directed nature of our world.

781 words
🖼️ Images & Media (5)
File:Directed graph no background.svg
Directed graph no background.svg
File:Directed acyclic graph 2.svg
Directed acyclic graph 2.svg
File:4-tournament.svg
4-tournament.svg
File:Incidence matrix - directed graph.svg
Incidence matrix - directed graph.svg
File:DirectedDegrees.svg
DirectedDegrees.svg
Up Next
🔢
Graph theory
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.