Defined in File GraphTools.hpp
Modifies graph G to be the union of it and graph G1. Nodes with the same ids are identified with each other.
G – Result of the merge.
G1 – Graph that will be merged with G.