with gremlin I want to show a graph with vertex name a field name end not the label name. How can do it?
If I use this my graph
I see the label name and not a specific value field, for example Name field value How I can modify my query? Thanks a lot
I want a specific value field for vertex
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.