Sma Module 2
Sma Module 2
Figure 2
Density
Graph density represents the ratio between the edges present in a graph and the maximum
number of edges that the graph can contain. Conceptually, it provides an idea of how dense
a graph is in terms of edge connectivity.
The graph G1 contains 4 nodes and 4 edges. We’re interested in knowing the maximum
number of edges G1 can contain.
We added 2 more edges to the graph G1. Therefore, the graph,G2 now contains 4 nodes
and 6 edges. We can’t add any more edges to it.
G1 G2
Standard formula to calculate the maximum number of edges in a simple undirected graph:
G3
Connectivity
Density measures the percentage of possible edges in a graph. Connectivity measures how
those edges are distributed.
Connectivity is a count of the minimum number of nodes that would have to be removed
before the graph becomes disconnected; that is, there is no longer a path from each node
to every other node.
In G4 , the connectivity is 1 because removing node B, C, or D would disconnect the graph.
Since removing any one of those nodes disconnects the graph, the connectivity is 1.
In G5 , the connectivity is 2. For example, removing nodes E and F would separate G5 from
the rest of the graph. If we removed B and D instead, node A would become separated.
G4 G5