Last active
November 22, 2020 19:13
-
-
Save joseberlines/89a6000c6c8b6bd37895c63ddeec124e to your computer and use it in GitHub Desktop.
graph7
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'}}, | |
{'selector': 'node[id = "BER"]','style': { | |
'font-family': 'arial', | |
'font-size': '10px', | |
'label': 'data(label)', | |
'background-color': 'green'}} | |
] | |
ipycytoscape_obj7 = ipycytoscape.CytoscapeWidget() | |
ipycytoscape_obj7.graph.add_graph_from_json(railnetJSON, directed=False) | |
ipycytoscape_obj7.set_style(my_style) | |
ipycytoscape_obj7.set_style(my_style) | |
ipycytoscape_obj7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment