I am using ShortestPath algorithm. I have several Relationships for which I want to ignore their direction, and I'm not using any costs.
I can specify orientation: 'UNDIRECTED' for each Relationship, but I have to create a list of dictionaries. It becomes a bit cumbersome as the number of different Relationships grows:
relationshipProjection: {
SELLS: {
type: 'SELLS',
orientation: 'UNDIRECTED'},
PURCHASES: {
type: 'PURCHASES',
orientation: 'UNDIRECTED'},
IS_PART_OF: {
type: 'IS_PART_OF',
orientation: 'UNDIRECTED'},
....
}
I wonder if there is a way to specify orientation: 'UNDIRECTED' in one place for all Relationships, with the Relationships specified as a simple list:
relationshipProjection: ['SELLS','PURCHASES','IS_PART_OF',...],
?
Thank you