torchcell.paper.ontology_graph.OntologyGraph

class OntologyGraph(*, classes: dict[str, ~torchcell.paper.ontology_graph.OntologyClass] = <factory>, composition_edges: list[~torchcell.paper.ontology_graph.CompositionEdge] = <factory>)[source]

Bases: BaseModel

The whole schema as classes plus inheritance and composition edges.

children_of(name: str) → list[str][source]

Direct inheritance children, in stable alphabetical order.

lane_members(lane: str) → list[str][source]

Class names in a lane, in stable alphabetical order.

descendants_of(name: str) → list[str][source]

Every class below name in the inheritance tree, excluding itself.

lane_roots(lane: str) → list[str][source]

Classes in lane whose inheritance parent sits outside the lane.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].