What is a graph called when its edges have a direction, shown as arrows?
AnswerA directed graph
In a directed graph, or digraph, each edge goes from one vertex to another in a set direction.
Coding · Facts & stats
7 fact-checked facts about graphs in graph theory, each with the reason behind it. 5 more are in today's round and join this page after it closes.
AnswerA directed graph
In a directed graph, or digraph, each edge goes from one vertex to another in a set direction.
AnswerAn edge that connects a vertex to itself
A loop starts and ends at the same vertex.
AnswerA queue
A queue handles vertices first in, first out, so the search explores layer by layer.
AnswerLeonhard Euler
Euler showed no walk could cross each bridge exactly once, an early result in graph theory.
AnswerShortest paths from a starting vertex in a graph with non-negative weights
Dijkstra's algorithm repeatedly settles the closest unvisited vertex to build shortest paths.
AnswerTwice the number of edges
Each edge adds one to the degree of both of its endpoints, so it counts twice in the total.
Answer10
A complete graph on n vertices has n(n - 1)/2 edges: 5 x 4 / 2 = 10.