Last active
November 22, 2020 19:14
-
-
Save joseberlines/8ae2c6da4d87aaa90c13b44fd1a51c38 to your computer and use it in GitHub Desktop.
graph6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_style = [ | |
{'selector': 'node','style': { | |
'font-family': 'arial', | |
'font-size': '10px', | |
'label': 'data(label)', | |
'background-color': 'red'}}, | |
] | |
ipycytoscape_obj6 = ipycytoscape.CytoscapeWidget() | |
ipycytoscape_obj6.graph.add_graph_from_json(railnetJSON, directed=False) # I am telling I dont want directions | |
ipycytoscape_obj6.set_style(my_style) | |
ipycytoscape_obj6 # which is the same |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment