Skip to main content
100%

Wilson’s Algorithm IV

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 12, 2014

Wilson’s Algorithm IV applies D3’s tree layout to a maze generated by Wilson’s loop-erased random walk. The maze is represented as a hierarchical tree of connected cells, with SVG paths drawn as straight links between parent and child nodes. The code uses `d3.layout.tree`, `tree.nodes`, and `tree.links` to compute positions, while custom functions `generateMaze` and `generateTree` construct the maze’s spanning tree. The visualization shows the resulting tree structure with black connecting lines against a white background, using D3 v3 and SVG rendering.

AI-generated description
gpl-3.0 Licensed

Similar vizzes