I try to implement the algorithm described in this paper (page 8), but there's a place that I can't understand, and the authors do not provide a more detailed explanation or pseudocode.
They show how to contract this graph:
Vertices A, G & F are external and must remain. Now, they analyze the connections:
For 1,8,9, the connections are {1}A,8,9, {8}G,9,1, and {9}F,8,1. Any vertices connected solely within the subgraph are removed from the list. In this particular instance none of the vertices is internal to the subgraph. Next, any repeated items are removed from these lists. What remains are 1,8,9, A,G,F. The centroid, X, is now calculated as the mean of the vertices in the subgraph (1,8,9).
What are these repeated items? What is the criteria that 1, 8 & 9 can be reduced?
Are there better papers & algorithms for graph simplification? What I want to do is simplify a road graph, removing junctions and cities if needed.