Problem 5
Write the adjacency matrix of each graph. The complete bipartite graph \(K_{2,3}\)
Problem 6
Write the adjacency matrix of each graph. The complete graph on five vertices \(K_{5}\)
Problem 6
Tell whether the given path in the graph is (a) A simple path (b) A cycle (c) A simple cycle (b, c, d, a, b, e, d, c, b)
Problem 7
Write an algorithm that finds the lengths of the shortest paths from a given vertex to every other vertex in a connected, weighted graph \(G\).
Problem 8
Write an algorithm that finds the lengths of the shortest paths between all vertex pairs in a simple, connected, weighted graph having \(n\) vertices in time \(O\left(n^{3}\right)\).
Problem 9
A connected, planar graph has nine vertices having degrees \(2,2,2,3,3,3,4,4,\) and \(5 .\) How many edges are there? How many faces are there?
Problem 10
Give an example of a graph that has an Euler cycle that is also a Hamiltonian cycle.
Problem 11
Give an example of a graph that has an Euler cycle and a Hamiltonian cycle that are not identical.
Problem 11
Show that any graph having four or fewer vertices is planar.
Problem 14
Show that if \(n \geq 3,\) the complete graph on \(n\) vertices \(K_{n}\) contains a Hamiltonian cycle.