Skip to main content
100%

sparse matrix zoo: canvas

✓ Published0🌍 Public
NNDuma
Last edited May 25, 2016
Created on May 25, 2016

A sparse matrix from the University of Florida collection is rendered as an interactive force-directed graph. The code highlights one or two specific matrices, such as "08blocks" and "can_61," which are loaded as JSON from a hosted collection. D3's force layout positions nodes while links are drawn on a canvas element using its 2D context with a "lighter" composite operation for additive blending. Node radius and link width are scaled by matrix values, and a dropdown menu lets viewers switch between different matrices.

AI-generated description

I saw this list of sparse matrices and thought they could be thrown right into a d3 force layout.

I made a small script to process and host the "MM" formatted matrices to a d3 friendly JSON format.

I'd like to add more matrices from the list, and try to adapt this to webgl.

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/4bd6d92fd553bb9bac11'>sparse matrix zoo: canvas</a>

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/42a531c5d87bfc91036e'>sparse matrix zoo: canvas</a>

Similar vizzes