torchcell.paper.ontology_svg.build_layout

build_layout(graph: OntologyGraph, compact: bool = False) → Layout[source]

Place every class into its lane, then pack lanes into the grid.