If you need to use a raster PNG badge, change the '.svg' to '.png' in the link
Sparse: re-use sparse structure
This removes some allocations at the cost of lookups in the sparse
matrix. Tests on a very large problem hinted at some speedup, but
further tests will confirm if this is indeed a good idea.
relevant lines covered
hits per line