Defined in File GraphTools.hpp
Computes a graph with the same structure but with continuous node ids.
graph – The graph to be compacted.
nodeIdMap – The map providing the information about the node ids.
Returns a compacted Graph.