neo4j / graph-data-science

Source code for the Neo4j Graph Data Science library of graph algorithms.
https://neo4j.com/docs/graph-data-science/current/
Other
597 stars 157 forks source link

Relationship Id mapping from GDS internal to Neo4j #203

Closed cuneyttyler closed 2 years ago

cuneyttyler commented 2 years ago

There is mapping for node Ids in the class IdMap -> toMapOriginalNodeIds. But I couldn't find any similar method for relationships. There are some algorithms where relationships are tracked (such as Dijkstra and Yens). Although this configuration is not used (trackRelationships). I wanted to add relationship ids to the StreamResult but without the mapping it's not possible. Would you be interested in developing this feature?

Thanks.

soerenreichardt commented 2 years ago

Hello @cuneyttyler, You are right, the mapping information for relationships is not stored in GDS. The trackRelationships config option in the shortest path algos invents new relationship ids in order to be able to reconstruct the resulting path with its costs. Unfortunately it is currently not planned to add this feature.

s1ck commented 2 years ago

I will close the issue since we are not planning to work on this. We put the request in our internal system and might consider it in a future release.