Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-25-2018 02:00 AM
Excuting the query of similarity was successuful by using this :
MATCH (at1:Attrib)<-[r:ASSIGNED]-(c:Contrat)-[x:ASSIGNED]->(at2:Attrib)
MERGE (at1)-[s:SIMILARITY]-(at2)
And then , to display only Attribs which are working together , I worked with this query and it's fine :
MATCH (at:Attrib)<-[r]-(c:Contrat)
WITH DISTINCT c.id AS Contrat , collect(DISTINCT at.label) AS Attributaires, count( DISTINCT at.id) AS Count
Return Attributaires;
and this the result :
My question is how can I remove duplicates for "at" in the graph and not only in the list . if 2 at have the same ID and they re displayed then we display only one at .
Solved! Go to Solution.
09-25-2018 04:43 AM
09-25-2018 03:51 AM
I'm not sure that I understand exactly what you'd like to do...could you maybe share a sample dataset that I can create locally and then say what you'd like the output of your query to be?
09-25-2018 04:28 AM
Actually this is the graph that I obtained after excuting "similarity" .
What I want to do exactly is : deleting the duplicates nodes which have the same ID (ID : 111 apearing twice for example here in the graph , I want to havejust one instead of two nodes with the same ID .
09-25-2018 04:43 AM
Here is the solution :
All the sessions of the conference are now available online