Releases
v0.6.0
Compare
Sorry, something went wrong.
No results found
Minor Changes
3115609 Thanks @davidkpiano ! - Make edge.label nullable
54023f4 Thanks @davidkpiano ! - Add edge weights, A* pathfinding, subgraph extraction, and graph reversal.
weight?: number on edges; algorithms default to (e) => e.weight ?? 1 with BFS fast path when unweighted
getAStarPath(graph, { from, to, heuristic }) for heuristic-guided shortest paths
getSubgraph(graph, nodeIds) returns induced subgraph with internal edges
reverseGraph(graph, filterEdge?) flips edge directions
Remove stale TODO for Mermaid sequence blocks (already implemented)
8f9912d Thanks @davidkpiano ! - Add walk generators and coverage utilities for model-based testing.
genRandomWalk(), genWeightedRandomWalk(), genQuickRandomWalk(), genPredefinedWalk() — step-by-step graph traversal generators that yield GraphStep, with optional seed for deterministic replay
Composable stop conditions: takeSteps(), takeUntilNode(), takeUntilEdge(), takeUntilNodeCoverage(), takeUntilEdgeCoverage()
getCoverage() computes node/edge coverage stats from a walk
filter option for edge guards, onStep callback for actions — keeps graph JSON-serializable
Patch Changes
You can’t perform that action at this time.