I have am trying to make a graph with a simple cypher query to see routes between Street Segments as shown below.
MATCH graph = (s1:StreetSegment)-[:ROUTE]->(s2:StreetSegment)
RETURN graph
I was wondering if there are any functions i can use to get information on the variable 'graph' that is initialized to this query such as number of nodes, number of relations etc.? Any functions to gain more insight on this relationship would also be interesting.
MATCH ff = (s1:StreetSegment)-[r:ROUTE]->(s2:StreetSegment)
RETURN size(collect(s1)) as s1_size ,size(collect(r)) as rel_size ,size(collect(s2)) as s2_size