Skip to main content

Module edge

Module edge 

Source
Expand description

The Edge object.

Per SPEC §4.2:

Edge: {
  _kind: "edge",
  id:    EdgeId (16 bytes),
  etype: string,
  src:   NodeId (16 bytes),
  dst:   NodeId (16 bytes),
  props: map<string, Ipld>,
}

Edges reference their endpoints by stable NodeId, never by content hash (SPEC §4.2, ): a node property edit does not invalidate edges referencing it.

Structs§

Edge
A typed, directed link between two Nodes.