1. A computer system, comprising: a memory having computer readable computer instructions; and a processor for executing the computer readable instructions to perform a method comprising: calculating node centralities of a graph until a designated number of central nodes are detected; selecting a percentage of the central nodes as pivot nodes; collapsing neighboring nodes to each pivot node until the graph shrinks to a predefined threshold of total nodes; and outputting the graph responsive to reaching the predefined threshold.