What makes a graph 'weighted'?
AnswerEach edge has a number, such as a distance or cost
Weights often stand for distances, travel times or costs, as on a road map.
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.
AnswerEach edge has a number, such as a distance or cost
Weights often stand for distances, travel times or costs, as on a road map.
AnswerAn adjacency matrix
Entry (i, j) of an adjacency matrix shows whether there is an edge from vertex i to vertex j.
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.
Answern - 1
A tree is connected with no cycles, which always needs exactly one fewer edge than vertices.
Answer10
A complete graph on n vertices has n(n - 1)/2 edges: 5 x 4 / 2 = 10.
AnswerEvery vertex has even degree
An Euler circuit uses each edge once and returns to the start, which requires entering and leaving each vertex equally.