Dots can be joined by lines.
Imagine dots on a page.
Imagine dots on a page.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
🖼️ Images & Media (5)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
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.