MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / length

Method length

graphlite/src/storage/value.rs:128–130  ·  view source on GitHub ↗

Get the length of the path (number of edges)

(&self)

Source from the content-addressed store, hash-verified

126
127 /// Get the length of the path (number of edges)
128 pub fn length(&self) -> usize {
129 self.elements.iter().filter(|e| e.edge_id.is_some()).count()
130 }
131
132 /// Get all node IDs in the path
133 pub fn get_nodes(&self) -> Vec<&str> {

Callers 4

queryMethod · 0.45
parseVariablesMethod · 0.45
parseRowsMethod · 0.45
unwrapMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected