← GraphChallenge.com

Coding · Facts & stats

Graph 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.

Play today's round

The basics

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.

In a graph, what is a 'loop'?

AnswerAn edge that connects a vertex to itself

A loop starts and ends at the same vertex.

Going deeper

Breadth-first search usually uses which data structure to track vertices to visit?

AnswerA queue

A queue handles vertices first in, first out, so the search explores layer by layer.

Which mathematician solved the Seven Bridges of Königsberg problem in 1736?

AnswerLeonhard Euler

Euler showed no walk could cross each bridge exactly once, an early result in graph theory.

What does Dijkstra's algorithm find?

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.

Expert level

In any undirected graph, the sum of all vertex degrees equals what?

AnswerTwice the number of edges

Each edge adds one to the degree of both of its endpoints, so it counts twice in the total.

How many edges does the complete graph on 5 vertices, K5, have?

Answer10

A complete graph on n vertices has n(n - 1)/2 edges: 5 x 4 / 2 = 10.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round