Documentation - v1.0.0
    Preparing search index...

    Type Alias Graph

    Graph: AsyncObject<{ edges: Edge[]; id: GraphId; nodes: Node[] }>

    Represents a complete ontology graph.

    A graph contains a collection of nodes and edges that form a semantic network. The graph supports asynchronous initialization and can be used for various ontology operations like inference, similarity calculations, and graph traversal.

    const graph: Graph = {
    id: "graph_company_ontology",
    nodes: [personNode, companyNode, roleNode],
    edges: [worksForEdge, hasRoleEdge],
    };