NF+TST: conversion tools for refactor of GraphPartition 

After adding new WeightedGraph Partition, and with an eye on refactoring modularity GraphPartition to treat the index (or community) as a list of sets (as opposed to a dict of sets etc) these new tools do some checking on the sent types and creates the new objects needed to maintain old code. (which will slowly be deprecated)