There is a method of calculating the diameter of an acyclic graph with undirected, unweighted edges which only requires two breadth-first searches. What is it? Given an example of a graph with cycles where this approach doesn't work.
The following 5-node graphs are described by their edge lists.
For each graph:
What is the betweenness centrality of each node?
Which edge or edges have the highest betweenness centrality?
What graphs do you get if you remove the highest betweenness centrality edges (removing multiple edges in the case of ties)?
Try working the examples out manually (but check your results using your code).
In the course, we have discussed a number of attributes of graphs including:
The additional notes in random-graphs.html supplement the brief discussion of random networks in Session 12.
Consider the following types of graph:
How do you expect they will vary with respect to the four attributes listed above? (Proofs are not expected!)