Skip to content

ShortestPath with multiple edges is returning empty list #9388

@tomazk8

Description

@tomazk8

OrientDB Version: 3.1.2

Java Version: 1.8.0_211

OS: Windows 10 Pro

Expected behavior

ShortestPath should support a list of edges like shows in the documentation: SELECT shortestPath(#8:32, #8:10, 'IN', ['Friend', 'Colleague'])

Actual behavior

Empty list is returned when array of edges is used, but works if only one edge without array is given.

Steps to reproduce

I added one class Person and edges Knows and Loves. A graph was created: P1(Id = #22:0) -Knows-> P2 (Id = #22:1) -Loves-> P3 (Id = #22:2)

This queries returns empty array
SELECT shortestPath(#22:0, #22:2, 'OUT', ['Knows', 'Loves'])
SELECT shortestPath(#22:0, #22:1, 'OUT', ['Knows'])
This query returns P1 and P2
SELECT shortestPath(#22:0, #22:1, 'OUT', 'Knows')

Whenever a list of edges is given, the result is empty. Am I doing something wrong? I searched through all of the examples and the documentation, and the query seems to be correct.

Thanks

Metadata

Metadata

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions