Skip to content

Layout Engines

LayoutEngine

Bases: Generic[G]

Source code in netext/layout_engines/engine.py
class LayoutEngine(Generic[G]):
    def __call__(self, graph: G) -> dict[Hashable, FloatPoint]:
        return NotImplemented  # pragma: no cover

GrandalfSugiyamaLayout

Bases: LayoutEngine[G]

Layout engine that uses the grandalf library to layout the graph using the Sugiyama algorithm.

Multiple components will be placed next to each other.

StaticLayout

Bases: LayoutEngine[G]

Static layout engine that uses the $x and $y attributes of the nodes.