neo4j: represent object property instead of relationship in links between objects
neo4j: represent object property instead of relationship in links between objects I want to use neo4j to represent networks, in order to make nice graphics like this one: Here is the code used so far: CREATE (router1:Router {name:'router1', defaultgw:'192.168.123.1'}) CREATE (network1:Network {name:'network1', cidr:'192.168.123.0/24'}) CREATE (server1:Server {hostname:'server1', ip:'192.168.123.7'}) CREATE (server2:Server {hostname:'server2', ip:'192.168.123.9'}) CREATE (router1)-[:CONNECTED_TO {}]->(network1), (network1)-[:CONNECTED_TO {}]->(server1), (network1)-[:CONNECTED_TO {}]->(server2) WITH router1 AS r MATCH (r)-[:CONNECTED_TO]->(n)-[:CONNECTED_TO]->(s) RETURN r,n,s ; Is there a way to represent the subnet used between router and network, and the ip of the server on the link between servers and related network, instead of the appropriate but meaningless CONNECTED_TO ? CONNECTED_TO I have tried to ...