Skip to content

Commit

Permalink
Some small changes to graph_ig and graph_gt
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdwetering committed Apr 15, 2020
1 parent 97e8b1a commit 914874b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyzx/graph/graph_gt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def __init__(self):
self.graph.set_fast_edge_removal()
self.graph.vp.type = self.graph.new_vertex_property('int')

def add_vertices(self, amount, vertex_data=None):
def add_vertices(self, amount):
self.graph.add_vertex(amount)

def add_edges(self, edges, vertex_data=None):
def add_edges(self, edges):
self.graph.add_edge_list(edges)

def remove_vertices(self, vertices):
Expand Down
1 change: 1 addition & 0 deletions pyzx/graph/graph_ig.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class GraphIG(BaseGraph):
as its backend"""
backend = 'igraph'
def __init__(self):
raise Warning("Python-igraph is currently not fully supported.")
BaseGraph.__init__(self)
self.graph = ig.Graph(directed=False)
self.graph.vs['_a'] = None
Expand Down

0 comments on commit 914874b

Please sign in to comment.