LayoutStream
linnet_py Class
LayoutStream()A synchronous iterator that advances the native force solver in batches.
Topology is fixed for the lifetime of the stream. Frames contain only coordinates and progress, so notebook viewers can retain their SVG elements.
Member details
node_names
Property · read-onlyendpoints
Property · read-onlyfrom_dot
Static method#
from_dot(dot: str, *, every: int = 4, steps: int = 200, epochs: int = 8, seed: int = 1, step: float = 0.02, cool: float = 0.85, spring_strength: float = 1.0, repulsion: float = 1.5, length_scale: float = 1.0, depth_scale: float = 1.0, flattening_end: float = 0.5, delta: float = 0.1, early_tolerance: float = 1e-06) -> LayoutStreamStart a force-layout preview from a single DOT graph.
This preview uses native graph geometry, without Typst label measurement or final edge-label relaxation. A new stream restarts from the same seed.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
dot | str | — | — |
every | int | 4 | — |
steps | int | 200 | — |
epochs | int | 8 | — |
seed | int | 1 | — |
step | float | 0.02 | — |
cool | float | 0.85 | — |
spring_strength | float | 1.0 | — |
repulsion | float | 1.5 | — |
length_scale | float | 1.0 | — |
depth_scale | float | 1.0 | — |
flattening_end | float | 0.5 | — |
delta | float | 0.1 | — |
early_tolerance | float | 1e-06 | — |
__iter__
Method__next__
MethodView generated signature source: docs/api/python/linnet-py.pyi:691