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],}; Copy
const graph: Graph = { id: "graph_company_ontology", nodes: [personNode, companyNode, roleNode], edges: [worksForEdge, hasRoleEdge],};
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.