cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

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.