Graphs
Warm-upHumanA graph has seven vertices, with degrees . How many edges does it have?
A graph has seven vertices, with degrees . How many edges does it have?
Can there be a group of people in which every person knows exactly of the others (knowing being mutual)?
An engineering cooperative lays water pipes to connect villages in a region of Bolivia so that water can flow between any two villages, using as few pipes as possible: the network has no loops. Each pipe joins two villages. How many pipes are there?
A connected graph has six vertices with degrees . Which statement is true?
The cube graph has the corners of a cube as vertices and its edges as edges. Which statements are true? (Choose all that apply.)
To prove that a tree with at least two vertices has a leaf, we take a longest path and show that is a leaf. Why can have no neighbour other than ?
How many trees with vertices are there up to isomorphism — that is, how many different shapes?
In the lesson's Lean model, IsEulerCircuit G w says that the walk w crosses every edge of the multigraph G exactly once and ends where it started. Which statement is a correct formalisation of the necessity half of Euler's theorem for circuits?
A connected multigraph on the vertices is given as a list of edges (a, b) (pairs may repeat). Write euler_status(n, edges) that returns "circuit" if it has an Euler circuit, "trail" if it has an Euler trail but no circuit, and "none" otherwise, using Euler's theorem. (Assume at least one edge.)