Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrientDB shortestpath - specific edges #7842

Closed
nksmjun opened this issue Oct 23, 2017 · 9 comments
Closed

OrientDB shortestpath - specific edges #7842

nksmjun opened this issue Oct 23, 2017 · 9 comments
Assignees

Comments

@nksmjun
Copy link

nksmjun commented Oct 23, 2017

OrientDB Version: v2.2.25

OS: windows10

I have a Question about the shortestPath() Function of OrientDB.

I confirmed that the following functions are valid.

select shortestPath('#9:1', '#15:1', 'BOTH','Friends').

However, in the above method, only 'Friends' can narrow down. For example, you want to do it with 'Friends' and 'Family'.

select shortestPath('#9:1', '#15:1', 'BOTH',['Friends', 'Family']).

But it did not go well. Is it impossible to acquire the shortest path by specifying multiple edges?

I am sorry for poor English, I hope this problem will be solved.

@luigidellaquila
Copy link
Member

Hi @nksmjun

I just pushed a little addition, now it works fine. This fix will be released with 2.2.30

Thanks

Luigi

@nksmjun
Copy link
Author

nksmjun commented Oct 24, 2017

thank you !

@hossein-md
Copy link

Hi @luigidellaquila
I think the document must be updated. According to the document:

... edgeClassName, optional, is the edge class to traverse. By default all edges are crossed.

Thanks

@luigidellaquila
Copy link
Member

Hi @hossein-md

The docs seem to be correct, what is the wrong info...?

Thanks

Luigi

@hossein-md
Copy link

Hi @luigidellaquila

It would be great if you mention that more than one edge type can be chosen.

Thanks

@luigidellaquila
Copy link
Member

Oh, got it, thanks! I'll do it asap

Thanks

Luigi

@luigidellaquila
Copy link
Member

Hi @hossein-md

I just fixed the docs, it will be available in next few hours on the website

Thanks

Luigi

@hossein-md
Copy link

Hi @luigidellaquila

Great!

Thanks

@suhassumukh
Copy link

suhassumukh commented May 9, 2019

@luigidellaquila I'm using version 3.0.15,

I still have the same problem.
The following works.

shortestpath($from, $to, "OUT", "EdgeClassA")

None of the following work. Gives an empty result.

shortestpath($from, $to, "OUT", ["EdgeClassA"])
shortestpath($from, $to, "OUT", ["EdgeClassA", "EdgeClassB"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants