Directed graph

From testwiki
Revision as of 19:50, 22 July 2022 by imported>Insincere Giraffe (added some more info, mainly about in/outdegree)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
A directed graph, vertex D cannot be reached from vertex B.

In graph theory, a directed graph (or digraph) is a graph which has directed edges. This means one end of the edge is different from the other end. Directed edges can be thought of as arrows, or as edges which can only be travelled in one direction.

Degree

For a normal graph, the degree of a vertex v is the number of edges touching v.

For a digraph, there are two more definitions. The indegree of v is the number of edges going into v, and the outdegree of v is the number of edges going out of v.

Template:Math-stub