Skip to content

Instantly share code, notes, and snippets.

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