NF: clear error raised if index does not contain all possible nodes
NF: added tests for new type checking methods of GraphPartition, and check that index is a dict