Skip to main content

Module graph

Module graph 

Source
Expand description

The bundle’s link graph: model extraction and force-directed layout.

Re-exports§

pub use layout::LayoutEngine;
pub use layout::LayoutMode;
pub use model::EdgeKind;
pub use model::GraphEdge;
pub use model::GraphModel;
pub use model::GraphNode;
pub use model::NodeKind;

Modules§

layout
Hand-rolled Fruchterman–Reingold force-directed layout, plus a radial by-directory-depth fallback.
model
Extraction of the graph model from a loaded bundle: the same edges the okf graph command prints, kept as typed nodes and edges so the canvas can style them distinctly.