Return a JSON string of the serialized topology

def serialize(self):
        '''
        Return a JSON string of the serialized topology
        '''
        return json.dumps(json_graph.node_link_data(self.__nxgraph), cls=Encoder)