Fix core tests

Adjust test graph to map nodes since the new havel hakimi algorithm generates different node ordering
Merge pull request #876 from hagberg/core-tests

Fix core tests