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

Method add_element

graphlite/src/storage/value.rs:123–125  ·  view source on GitHub ↗

Add an element to the path

(&mut self, element: PathElement)

Source from the content-addressed store, hash-verified

121
122 /// Add an element to the path
123 pub fn add_element(&mut self, element: PathElement) {
124 self.elements.push(element);
125 }
126
127 /// Get the length of the path (number of edges)
128 pub fn length(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected