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,

You can export a projected graph using apoc.export.graphml. See Export to GraphML - APOC Extended 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;
1 Like

Hello. mark. Thank you. All good.

1 Like