Skip to content

Commit

Permalink
reverted node and relationship ids back to int
Browse files Browse the repository at this point in the history
  • Loading branch information
pwrose authored and marimeireles committed Apr 21, 2021
1 parent 490d16c commit b486691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipycytoscape/cytoscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def add_graph_from_neo4j(self, g):
node_attributes["tooltip"] = tooltip_text

# assign unique id to node
node_attributes["id"] = str(node.identity)
node_attributes["id"] = node.identity

# assign class label with the highest priority
index = len(priority_labels)
Expand Down Expand Up @@ -714,8 +714,8 @@ def add_graph_from_neo4j(self, g):
rel_attributes["name"] = rel.__class__.__name__

# assign unique node ids
edge_instance.data["source"] = str(rel.start_node.identity)
edge_instance.data["target"] = str(rel.end_node.identity)
edge_instance.data["source"] = rel.start_node.identity
edge_instance.data["target"] = rel.end_node.identity
_set_attributes(edge_instance, rel_attributes)

edge_list.append(edge_instance)
Expand Down

0 comments on commit b486691

Please sign in to comment.