Example #1
0
 def create(cls, vertices = Vertices()):
     edges = Edges.create(vertices)
     return Graph(vertices, edges)
Example #2
0
 def complement(self):
     all_edges = Edges.create(self.vertices)
     return Graph(self.vertices, all_edges - self.edges)