Nepedia
Back to Discover
Fluent Reader
🔢

Directed graph

math Maturity 11-13 Next article →

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
Directed graph no background

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
Incidence matrix - directed graph

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
DirectedDegrees

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
Directed acyclic graph 2

Another type is a tournament. In a tournament, every single pair of dots has exactly one arrow connecting them.

4-tournament
4-tournament

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
DirectedDegrees

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
Directed graph no background

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.

456 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ 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
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.