You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Neo4j
I found my query always got stuck at expanding some messy nodes with hundreds of indegrees. I am wondering if on each node we have some hidden property that tells the number of degrees of that node?
I believe with the concept of "index free adjacency" there should be a way of knowing the node degrees without actually going out to read every node it is connected to.
Any comments/suggestions would be greatly appreciated.
Thanks,
Max De Marzi Jr.
unread,
Apr 5, 2017, 1:03:25 AM4/5/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Neo4j
Oh yeah. We keep track of them.
You can use SIZE((node)-[:reltype]->()) in Cypher.
MATCH (n:User {id:'max'})
RETURN SIZE((n)--()) AS all, SIZE((n)-->()) AS out, SIZE((n)<--()) AS in, SIZE((n)-[:FRIENDS]-()) AS allType, SIZE((n)-[:FRIENDS]->()) AS outType, SIZE((n)<-[:FRIENDS]-()) AS inType