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
graphis a module for construction, parsing, inspection, data transforms, joins, cycles, and forests.layoutandlayout-sequenceare top-level functions. They are documented together because both come fromlayout.typ.draw,edge-halves, andto-cetz-edge-halvesare top-level drawing functions fromdraw.typ.physicsis a module of reusable particle-line styles and callbacks.subgraphis a module for constructing and inspecting zero-copy subgraph values.curveis a re-export of Kurvst, not a second Linnest API. Use the canonical Kurvst curve and path reference.
Modules and functions import differently
Import
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, sourceThe 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.