Linnest Typst API

Linnest documents a small supported surface around Linnet’s graph model. Start with the workflow guide if you want to build and draw a graph; use these pages when you need an exact function, parameter, or default.

Supported surface

Modules and functions import differently
Import graph, physics, and subgraph as modules when you want qualified calls such as graph.build. Import layout, layout-sequence, and draw directly from lib.typ; they are functions rather than nested modules.
#import "crates/linnest/typst/src/lib.typ": draw, graph, layout, physics, subgraph
#import graph: build, edge, node, sink, source

The same package also exports the layouts module for callers that need the underlying layout namespace; its layouts.layout and layouts.sequence aliases are linked from the layout page. Bindings exposed only as a consequence of Typst module loading, such as serialization helpers or imported dependency modules, remain implementation details rather than supported API. The focused reference uses the supported functions and modules above.