'Convert to a new object of networkx.MultiGraph-like class cls
data: include node and edge data (default True)
keys: include edge keys as well as edge data (default True)'

def convertTo(self, cls, data=True, keys=True):

    return self.g.convertTo(cls, data=data, keys=keys)
