The function shortestPath()takes direction as the third argument. How to change a function so that it intersects only the edges of a certain class? I believe that I can simply add the class as the second argument on line 106:
shortestPath()
https://github.com/orientechnologies/orientdb/blob/b21429d600f87193611eed3d33b90d5fb9c2f61e/graphdb/src/main/java/com/orientechnologies/orient/graph/sql/functions/OSQLFunctionShortestPath.ava
If I do this, do I need to rebuild from the source code? How can I create a custom function to use in my queries?
OrientDB v.2.0.9 2.1. , , ( "2.0.x" "develop" )
:
shortestPath(<sourceVertex>, <destinationVertex>, [<direction>, [ <edgeTypeAsString> ]])
SELECT shortestPath(#12:0, #12:10, null, "MyEdgeClass")
Source: https://habr.com/ru/post/1584134/More articles:Could not find "ng" in module ... - Broken Intellisense? - javascriptDebugging three-dimensional mouse coordinates raycaster - canvashttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1584131/is-there-a-one-liner-for-submiting-many-jobs-to-slurm-similar-to-lsf&usg=ALkJrhjsHJifCQjJd_IPXQsOytJRuFd1xAОбъединение цепочки и назначение по ссылке в таблице данных. - rStrange NHibernate QueryOver syntax error - mysqlRepresentation of a set in java and CQL - javaThe rfsrc () command in the randomForestSRC R package that does not use multicore functionality - parallel-processingcheck if the same value exists in the input field - jqueryCheck if it is possible to sort an array with a single swap of 2 elements - sortingПотребительский путь Kafka не должен заканчиваться/character - apache-kafkaAll Articles