Graphpart fixnodes

refactor GraphPartition class to not assume graph nodes are contiguous integers (which would be used to index into adjacency matrix)

added tests
small additional cleanup