Documentation - v1.0.0
    Preparing search index...

    Type Alias Edge

    Edge: AsyncObject<
        {
            description: string;
            embedding: Embedding
            | null;
            id: EdgeId;
            name: string;
            properties: Property[];
            sourceId: NodeId;
            targetId: NodeId;
        },
    >

    Represents an edge connecting two nodes in the ontology graph.

    Edges represent relationships between nodes and can have their own properties and semantic embeddings. Each edge has a source and target node, and supports asynchronous initialization for loading embeddings.

    const edge: Edge = {
    id: "edge_works_for",
    name: "Works For",
    description: "Employment relationship between a person and an organization",
    embedding: [0.1, 0.2, 0.3],
    sourceId: "node_person",
    targetId: "node_company",
    properties: [startDateProperty, salaryProperty],
    ready: Promise.resolve()
    };