arangodb - Negative filterVertices option for traversal -


the graph_traversal has option called filtervertices, documentation states used allow vertices matching examples go through. there negative version of this, e.g. allow except matching filter?

in many cases useful, e.g. traverse except marked disabled (or old-version) or that. of course can done js function, why not built-in?

you're right, not possible, , if want use graph_traversal have write own visitor function.

however, recommended way use new pattern matching can use filter statements this:

db._query("for vertex in 1..3 outbound 'circles/a' graph           'traversalgraph' filter vertex._key != 'g' return v._key")          .toarray(); 

so can use arbitrary filter expressions on vertices, edges , paths , sub-parts.

in general our development focus on pattern matching traversals , doing as possible in aql. if implement such feature general graph module, contributions welcome.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -