Skip to content

Instantly share code, notes, and snippets.

@joseberlines
Last active November 22, 2020 19:13
Show Gist options
  • Save joseberlines/89a6000c6c8b6bd37895c63ddeec124e to your computer and use it in GitHub Desktop.
Save joseberlines/89a6000c6c8b6bd37895c63ddeec124e to your computer and use it in GitHub Desktop.
graph7
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