I have the following request:
CALL apoc.index.relationships('TO','context:34b4a5b0-0dfa-11e9-98ed-7761a512a9c0')
YIELD rel, start, end WITH DISTINCT rel, start, end
RETURN DISTINCT start.uid AS source_id,
start.name AS source_name,
end.uid AS target_id,
end.name AS target_name,
rel.uid AS edge_id,
rel.context AS context_id,
rel.statement AS statement_id,
rel.weight AS weight
Which returns a table of results such as
The question:
Is there a way to filter out the top 150 most connected nodes (source_name/source_id
and target_name/edge_id
nodes)?
I don't think it would work with frequency
as each table row is unique (because of the different edge_id
) but maybe there's a function inside Neo4J / Cypher that allows me to count the top most frequent (source_name/source_id
and target_name/edge_id
) nodes?
Thank you!