I am using Yen’s K-Shortest Paths algorithm. I have a situation when I have multiple 'redundant' paths, which I'd like to reduce to only one. Supplier (node) FILLS (relationship) multiple PurchaseOrders (node) and PurchaseOrders USED (relationship) by an Organization (node). There could be dozens or even hundreds of PurchaseOrders between a specific Supplier and a specific Organization, but for my purpose it's only path. It seems like the natural thing to use here is Virtual Relationships, which I have used for other types of queries.
However, the ShortestPath algorithms do not recognize Virtual Relationships, here is the error message I'm getting (PURCHASES_FROM is the name of the Virtual Relationship I created)
Failed to invoke procedure `gds.alpha.kShortestPaths.stream`: Caused by: java.lang.IllegalArgumentException: Invalid relationship projection, one or more relationship types not found: 'PURCHASES_FROM|...'
Is there a way I can get around this problem?
Thank you.