neo4j-contrib / neo4j-graph-algorithms

Efficient Graph Algorithms for Neo4j
https://github.com/neo4j/graph-data-science/
GNU General Public License v3.0
767 stars 196 forks source link

run algo on apoc virtual graph? From apoc virtual graph to named graph #914

Closed tonny008 closed 4 years ago

tonny008 commented 4 years ago

hot to run algo on apoc virtual graph? ways to convert apoc virtual graph to a named graph

AliciaFrame commented 4 years ago

We don't recommend running algorithms on apoc virtual graphs.

If you're using apoc virtual graphs to project a document into a graph, you'll want to import the data into neo4j and then run graph algorithms on the graph itself. If you're using virtual graphs to reshape the data in an existing neo4j instance into a different projection, you can use the cypher projections in the graph algorithms package (https://neo4j.com/docs/graph-algorithms/current/projected-graph-model/cypher-projection/).