I created an example graph in Neo4J with one parent and two children. I would like to know how to change the color of all nodes that have level equal to 1.
WhenIclickonthenodeitappearsatthebottomtomodifythesizeandcolorbutthechangeaffectsallandnotonlythosethathavethelevelvalueequalto1.SomeimagesthatIfoundonthewebshowthenodeswithdifferentcolorsbutIhavenotfiguredouthowtoapplythis,eitherviatheinterfaceorusingthelibpy2neo(Python)Iamusing.Mycodelookslikethis:
frompy2neoimportGraph,Pathfrompy2neoimportNodefrompy2neoimportRelationshipgraph=Graph('http://neo4j:senha_falsa@localhost:7474/db/data/')graph.delete_all()a=Node("Conta", email="[email protected]", name="Argos", nivel="0")
b = Node("Conta", email="[email protected]", name="Riana", nivel="1")
c = Node("Conta", email="[email protected]", name="Elias", nivel="1")
graph.create(Relationship(a, "PAI DE", b))
graph.create(Relationship(a, "PAI DE", c))
I wanted to know if without how to pass size and color as attributes.