I have a request from a user to highlight the filtered nodes in the graph in a different color from the other nodes. To do this, I thought about changing the label of the filtered nodes in the graph view, in order to differentiate them from the others.
This is the Cypher query:
MATCH (n:PF) where n.CPF IN ["80091172500","91227712553"] WITH collect(n) as nodes UNWIND nodes as p1 MATCH (p1)-[rel_parentes:PARENTE_DE]-(parentes:PF) RETURN p1, rel_parentes, parentes
The result is
Note that all nodes belong to the PF label, but I would like the nodes "80091172500" and "91227712553" to be visualized with a virtual label called "chosen" and the remaining nodes continue with the label PF. How can I do this?