Skip to content

@graphty/algorithms / index / GraphDirection

Type Alias: GraphDirection ​

GraphDirection = "any" | "directed" | "undirected"

Defined in: catalog.ts:96

The graphs an algorithm accepts. "any": directed and undirected snapshots. "directed" / "undirected": it throws on the other kind (for an undirected-only algorithm, pass snapshot.toUndirected().snapshot).