Graphs

9.1 Find all graphs with 2, 3 and 4 nodes.


9.2 (a) Is there a graph on 6 nodes with degrees 2, 3, 3, 3, 3, 3?

(b) Is there a graph on 6 nodes with degrees 0, 1, 2, 3, 4, 5?

(c) How many graphs are there on 4 nodes with degrees 1, 1, 2, 2?

(d) How many graphs are there on 10 nodes with degrees 1, 1, 1, 1, 1, 1, 1, 1, 1, 1?


9.3 At the end of the party, everybody knows everybody else. Draw the graph representing this situation. How many edges does it have?


9.4 Draw the graphs representing the bonds between atoms in

(a) a water molecule;

(b) a methane molecule;

(c) two water molecules.


9.5 (a) Draw a graph with nodes representing the numbers , in which two nodes are connected by an edge if and only if one is a divisor of the other.

(b) Draw a graph with nodes representing the numbers , in which two nodes are connected by an edge if and only if they have no common divisor larger than 1.

(c) Find the number of edges and the degrees in these graphs, and check that theorem 9.1 holds.


9.6 What is the largest number of edges a graph with 10 nodes can have?


9.7 How many graphs are there on 20 nodes? (To make this question precise, we have to make sure we know what it means that two graphs are the same. For the purposes of this exercise, we consider the nodes given, and labeled say, as Alice, Bob, … The graph consisting of a single edge connecting Alice and Bob is different from the graph consisting of a single edge connecting Eve and Frank.)


9.8 Formulate the following assertion as a theorem about graphs, and prove it: At every party one can find two people who know the same number of other people (like Bob and Eve in our first example).


9.9 Find all complete graphs, paths and cycles among the graphs in the previous figures.


9.10 How many subgraphs does an empty graph on nodes have? How many subgraphs does a triangle have?


9.11 Is the proof as given above valid if

(a) the node lies on the path ;

(b) the paths and have no node in common except .


9.12 (a) We delete an edge from a connected graph . Show by an example that the remaining graph may not be connected.

(b) Prove that if we assume that the deleted edge belongs to a cycle that is a subgraph of , then the remaining graph is connected.


9.13 Let be a graph and let and be two nodes of . A walk in from to is a sequence of nodes such that , , and consecutive nodes are connected by an edge, i.e., for .

(a) Prove that if there is a walk in from to , then contains a path connecting to .

(b) Use part (a) to give another proof of the fact that if contains a path connecting and , and also a path connecting to , then it contains a path connecting to .


9.14 Let be a graph, and let and be two subgraphs of that are connected. Assume that and have at least one node in common. Form their union, i.e., the subgraph , where and . Prove that is connected.


9.15 Determine the connected components of the graphs constructed in exercise 9.1.


9.16 Prove that no edge of can connect nodes in different connected components.


9.17 Prove that a node is a node of the connected component of containing node if and only if contains a path connecting to .


9.18 Prove that a graph with nodes and more than edges is always connected.

Prev: 08-integers-divisors-and-primes Next: 10-trees