def __init__(self, edges, **kwargs): super().__init__(edges, **kwargs) self.pos = nx.spring_layout(self.G, iterations=100) self.get_measures()