sparsegraph prototype