I know that in previous versions, there was an apoc.graph.fromPaths() method.
ex:
MATCH path = (:Person)-[:ACTED_IN]->(:Movie)
WITH collect(path) AS paths
CALL apoc.graph.fromPaths(paths,'test', {})
YIELD graph AS g
RETURN g.nodes AS nodes, g.relationships AS relationships;
I am currently in version 5.15.How to beautiful replace it?