cancel
Showing results for 
Search instead for 
Did you mean: 

Export projected graph

Please, I have created a projected graph, like this:


CALL gds.graph.create(
'my-native-graph',
'Author',
'CO_AUTHOR'
)
YIELD graphName, nodeCount, relationshipCount, createMillis;

I need to export the projected graph in GraphML format.

Note. I don't need to export the whole graph, just "my-native-graph"

Thank you,

2 REPLIES 2

mark_needham
Neo4j
Neo4j

You can export a projected graph using apoc.export.graphml. See Export to GraphML - APOC Documentation

WITH "MATCH path = (a1)-[:CO_AUTHOR]->(a2)
      RETURN path" AS query
CALL apoc.export.graphml.query(query, null, {stream: true})
YIELD file, nodes, relationships, properties, data
RETURN file, nodes, relationships, properties, data;

Hello. mark. Thank you. All good.