All what I need is knowing how many times each node collaborated with other nodes , I found this example and I followed it .
I runned this query :
MATCH (n:Attributaires)-[r:CollaborateWith]->(m:Attributaires) With distinct n.id as Attributaires , size((n)-->(m)) AS NumberOfRelations , m.id AS Collaborators RETURN Attributaires , NumberOfRelations , Collaborators
But I am getting the same value for all "NumberOfRelations" which is "1" .
Anyone has a solution and could help please ?