g3-toolkit API Reference
    Preparing search index...

    Interface RestEdgeMapping

    interface RestEdgeMapping {
        id?: string;
        properties?: Record<string, unknown>;
        source: string;
        target: string;
        type: string;
    }
    Index

    Properties

    id?: string

    Stable edge id from the source record, used as the UGM edge id (issue #48). Omitted, the graph generates one and a host that reloads through this adapter gets a different id for the same edge on every load. The id must be unique across every edge of the response, and should not reuse a node id: the canvas hands Cytoscape one id space for nodes and edges, and the edge loses that collision. A duplicate id is handled the way a dangling endpoint already is: the first record wins and the later one is skipped, so one bad record cannot fail the whole load.

    properties?: Record<string, unknown>
    source: string
    target: string
    type: string