mirror of
https://github.com/Steffo99/unimore-bda-5.git
synced 2024-11-22 08:04:25 +00:00
12 lines
409 B
Text
12 lines
409 B
Text
|
CALL gds.graph.project.cypher(
|
||
|
"deps",
|
||
|
"MATCH (a:Crate) RETURN id(a) AS id",
|
||
|
"MATCH (a:Crate)-[:HAS_VERSION]->(v:Version) WITH a, v ORDER BY v.name DESC WITH a, collect(v.name)[0] AS vn MATCH (a:Crate)-[:HAS_VERSION]->(v:Version {name: vn})-[:DEPENDS_ON]->(c:Crate) RETURN id(a) AS source, id(c) AS target"
|
||
|
) YIELD
|
||
|
graphName,
|
||
|
nodeQuery,
|
||
|
nodeCount,
|
||
|
relationshipQuery,
|
||
|
relationshipCount,
|
||
|
projectMillis
|