4

Can anyone tell me how to show the name of a node in the graph viewer in the same way that is shown at the demo site: http://console.neo4j.org/

Here it shows Neo against node 1 instead of only the node id. I'm creating nodes through the admin interface - ie. not in the same way as in the example on the site at the top of the page titled 'Graph Setup'.

Thanks.

dubs
  • 6,511
  • 4
  • 19
  • 35

2 Answers2

4

In order to do this in the data browser part of the admin interface, you can configure "styles". Within the style, you can configure filters for certain types of nodes to have different styles and markers (circles, rectangles, font size). It's a little clunky but it's usable to play with the data.

I took a screenshot of some of my chess database as an example (I set the FEN position property to be the node label): enter image description here

Eve Freeman
  • 32,467
  • 4
  • 86
  • 101
  • Thanks Wes. I've just tried this and it works as you said. I clicked Styles, changed the Label value from {id} to {name} (all my nodes have a 'name' attribute'), saved the style profile and whet back to the diagram which automatically refreshed. – dubs Jan 23 '13 at 08:13
  • @dubs Peter Neubauer posted a video today that goes through a lot of the admin stuff. Check it out: https://vimeo.com/58016492 – Eve Freeman Jan 23 '13 at 19:31
2

A node does not have a name, unless you give it a name property.

The graph viewer in the admin tool can not to my knowledge display anything but the node ID.

I recommend Neoclipse, a tool that can be installed as a plugin in Eclipse, or downloaded as a standalone program. It will display your nodes with plenty of details.

Werner Kvalem Vesterås
  • 10,226
  • 5
  • 43
  • 50
  • Thanks for the clarification. I'll certainly be checking out Neoclipse. – dubs Jan 22 '13 at 19:27
  • Had to mark Wes's response as the answer as I tried it and it does seems to work! Neoclipse looks good though and I think it will certainly come in useful - thanks. – dubs Jan 23 '13 at 08:09