Skip to content

Commit

Permalink
add node labels
Browse files Browse the repository at this point in the history
  • Loading branch information
pwrose authored and marimeireles committed Apr 21, 2021
1 parent e497d2f commit dc75ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipycytoscape/cytoscape.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def create_tooltip(node_attributes, node_labels):
node_attributes : dictionary of node attributes
node_labels : list of node labels
"""
labels = ",".join(str(label) in node_labels)
labels = ",".join(label for label in node_labels)
attributes = "\n".join(k + ":" + str(v) for k, v in node_attributes.items())
return labels + "\n" + attributes

Expand Down

0 comments on commit dc75ea4

Please sign in to comment.