How to count distinct couples

Hello @dario.piantanida and welcome to the Neo4j community :slight_smile:

MATCH (c1:CI)-[:USES]->(c2:CI)
WITH DISTINCT c1.name AS c1_name, c2.name AS c2_name
RETURN count(c1_name) AS couples

Regards,
Cobra