Hi Luigi. Thanks for the answer. I had a quick look at the code and it seems that adding an extra check and parameter to the getNeighbors function in the OSQLFunctionPathFinder class could do the trick.
But it's a while since I've been in Java-Land and I'm a bit unsure on how I actually would run and test a custom SQL function. The docs give an example for a custom Java SQL function but I have no idea where I should put the code shown there. http://www.orientechnologies.com/docs/2.0/orientdb.wiki/SQL-Functions.html#custom-functions-in-java Would I have to build my own version of orientdb-graphdb-2.0.2.jar? It would seem very daunting to me even to try doing that. Is there an easier way? Thanks a lot for your help. Cheers Georg On Tuesday, February 10, 2015 at 2:53:58 AM UTC-5, Luigi Dell'Aquila wrote: > > Hi Georg, > > in current implementation it's not possible. Anyway Dijkstra and > ShortestPath functions are quite simple (links to the source code below), > you could just implement your own version starting from them and (why not?) > send a pull request and become OrientDB contributor. > > > 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 > > Thanks > > Luigi > > 2015-02-10 3:20 GMT+01:00 Georg Göttlich <[email protected] > <javascript:>>: > >> Hello eveyone. >> >> I wanted to know if there is a way to restrict path finding >> (shortestPath, Dijkstra) to a certain type of Edges? >> >> If not, what would be the suggested route to integrate this (and also the >> dynamic weight property feature from my other post) myself? >> >> Thanks a lot. >> >> Cheers >> Georg >> >> -- >> >> --- >> 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] <javascript:>. >> 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.
