MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_variable_length

Method is_variable_length

nodedb/src/engine/graph/pattern/ast.rs:107–109  ·  view source on GitHub ↗

Whether this is a variable-length path (min != max or > 1 hop).

(&self)

Source from the content-addressed store, hash-verified

105impl EdgeBinding {
106 /// Whether this is a variable-length path (min != max or > 1 hop).
107 pub fn is_variable_length(&self) -> bool {
108 self.min_hops != self.max_hops || self.min_hops > 1
109 }
110}
111
112/// Edge traversal direction.

Callers 2

score_tripleFunction · 0.45
execute_tripleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected