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

Method new

graphlite/src/storage/types.rs:76–82  ·  view source on GitHub ↗

Create a new node with the given id

(id: String)

Source from the content-addressed store, hash-verified

74impl Node {
75 /// Create a new node with the given id
76 pub fn new(id: String) -> Self {
77 Self {
78 id,
79 labels: Vec::new(),
80 properties: HashMap::new(),
81 }
82 }
83
84 /// Create a new node with id and labels
85 pub fn with_labels(id: String, labels: Vec<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected