That looks like you are using the graph-notebook
Jupyter notebooks. You can use the -d
and -de
flags to tell the notebook how to label the diagram. For example:
%%gremlin -d name -de weight
will label nodes using a "name" property, and edges using a "weight" property.
Note that most of the magic commands, like %%gremlin
support asking for help. You just need to put at least one character in the cell body. For example:
%%gremlin --help
x
There is additional documentation available here and here
There are also a number of sample notebooks that come included with the graph-notebook open source package. Several of those contain examples of how to customize graph visualizations. You may find those useful.