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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -