MATCH (x) DETACH DELETE x;
MATCH (ha:Haltestelle)<-[sa:ProjSegA]-(s:Segment)-[sb:ProjSegB]-(hb:Haltestelle)
WITH gds.graph.project(
'bubahn',
ha,
hb,
{relationshipProperties: s{.laengeInMeter}},
{undirectedRelationshipTypes: ['*']}) AS g
RETURN
g.graphName AS graph, g.nodeCount AS nodes, g.relationshipCount AS rels
call gds.graph.list()
CALL gds.graph.drop('bubahn') YIELD graphName;