Hi Luis, there is no such a function in OrientDB right now. If you are a Java developer you can take a look at these classes
https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/orientechnologies/orient/graph/sql/functions/OSQLFunctionShortestPath.java https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/orientechnologies/orient/graph/sql/functions/OSQLFunctionDijkstra.java it should be quite easy to write your longest path function starting from these. Thanks Luigi 2015-06-13 23:17 GMT+02:00 Luigi Candita <[email protected]>: > > Hi at all > > I'm a newbie with OrientDB and Graph (database and concept). I want to > understand how to find the longest path in graph. > > This is my graph: > > > <https://lh3.googleusercontent.com/-6EfiHYUhma0/VXyc0V4zb6I/AAAAAAAANMk/mbRc7jcn2a4/s1600/Schermata%2B2015-06-13%2Balle%2B23.06.10.png> > The shortest path is: 13:0 -> 13:1 -> 13:2 > But I want to get the *longest: *13:0 -> 13:3 -> 13:1 -> 13:2 > > How can I do? > > Thanks in advance > > Luis > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
