Edge: Readonly<{
    id: string;
    weight?: number;
}>

Edge. Immutable.

Only encodes the destination vertex. The from is known since edges are stored on the from vertex.

Type declaration

  • id: string

    Vertex id edge connects to (ie. destination)

  • Optionalweight?: number

    Optional weight of edge