0

I have some node that have multi label. they create with codes like this:

    CREATE (a:Person:Student{name: 's1'})
    
    CREATE (b:Person:Teacher{name: 't1'})
    
    CREATE (a:Person:Employee{name: 'e1'})
    
    CREATE (b:Person:officer{name: 't1'})

I have about 300 labels.

I want colorize graph with not common label(Person), actuality I want teacher and student have different color .

How can I do that?

I think when I return the nodes, don't return all labels other than Person the problem be solve. Are there any way to do this?

Tavakoli
  • 1,303
  • 3
  • 18
  • 36

1 Answers1

0

In Neo4j browser wherein you can see the "colorized" data that you created. When you browse the nodes on the left panel (Database Information), you can see the labels for Teacher and Student. Click on Teacher and you will see the first 25 nodes for teachers. Then on your right panel, click on Teacher and you will see the different colors that you want. For older versions of Neo4j (3.5 or lower), the option to choose the color is at the bottom. I'm using the latest Neo4j version 4.4.

enter image description here

enter image description here

Bonus: You can also change the node size to small or BIG!

jose_bacoy
  • 12,227
  • 1
  • 20
  • 38
  • thanks. But I say the labels is about 300, and doing that manually is hard. selecting about 300 different color is hard I think – Tavakoli Jul 21 '22 at 13:33
  • sorry about that. I also have the same issue in Bloom where I want different sizes of the nodes. In bloom, you can save your settings and share to others but in neo4j browser, that settings is only for you to see. – jose_bacoy Jul 21 '22 at 13:35