- removed some loggin for contraction of node
- added argument to graph to generate temp graph (for testing purposes)