all

inline fun <T> Node.all(noinline sel: (T) -> Boolean? = null, noinline mustSatisfy: (T) -> Boolean): Pair<Boolean, List<T>>

Evaluates if the conditions specified in mustSatisfy hold for all nodes in the graph. The optional argument sel can be used to filter nodes for which the condition has to be fulfilled.

This method can be used similar to the logical implication to test "sel => mustSatisfy".