Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-27-2019 11:41 PM
subgraphAll implementation seems have some issue
I tried following cypher. the core-company.csv has about 7k records.
LOAD CSV WITH HEADERS FROM 'file:////app/neo4j/neo4j-enterprise-3.5.5/core-company-name.csv' as line with line
match (n:COMPANY{COMPANY_NM:line.company_nm}) with collect(n) as ns
call apoc.path.subgraphAll(ns, {maxLevel:3, relationshipFilter:'INVEST|WORK'}) yield nodes, relationships
CALL apoc.export .... nodes, relationships)
no result after hours. but i tried following
LOAD CSV WITH HEADERS FROM 'file:////app/neo4j/neo4j-enterprise-3.5.5/core-company-name.csv' as line with line
match (n:COMPANY{COMPANY_NM:line.company_nm}) with collect(n) as ns
call apoc.path.subgraphNodes(ns, {maxLevel:3, relationshipFilter:'INVEST|WORK'}) yield node with collect(node) as nodes
call apoc.algo.cover(nodes) yield rel with collect(rel) as rels, nodes
CALL apoc.export .... nodes, rels)
10 min 8M nodes 14M rels
APOC version apoc-3.5.0.3-all.jar
neo4j version 3.5.5
All the sessions of the conference are now available online