Nodes

Nodes are the building blocks of our graph. Each node is identifiable by a unique ID and type, and carries a versioned attributes.

  • Unique Identifier and Type: Differentiates each node within the graph.
  • Versioned Attributes: Tracks changes to the node's attributes over time, providing a historical context.

For example:

new Node(
    "SomeNodeType",
    new LeafAttribute<>("test_boolean", new BooleanAttributeValue(true)),
    new LeafAttribute<>("test_double", new DecimalAttributeValue(10d)),
    new LeafAttribute<>("test_integer", new IntegerAttributeValue(15))
);

We may want to specify Id:

var userNode = new Node(
    "user-1",
    "SomeNodeType",
    new LeafAttribute<>("test_boolean", new BooleanAttributeValue(true))
);