@@ -0,0 +1,850 @@
+import os, sys%0Aimport numpy as np%0Afrom numpy.testing import assert_equal, assert_almost_equal%0Afrom skan import csr%0A%0Arundir = os.path.dirname(os.path.abspath(__file__))%0Asys.path.append(rundir)%0A%0Afrom skan._testdata import tinycycle, skeleton1%0A%0A%0Adef test_tiny_cycle():%0A    g, idxs, degimg = csr.skeleton_to_csgraph(tinycycle)%0A    expected_indptr = %5B0, 0, 2, 4, 6, 8%5D%0A    expected_indices = %5B2, 3, 1, 4, 1, 4, 2, 3%5D%0A    expected_data = np.sqrt(2)%0A%0A    assert_equal(g.indptr, expected_indptr)%0A    assert_equal(g.indices, expected_indices)%0A    assert_almost_equal(g.data, expected_data)%0A%0A    expected_degrees = np.array(%5B%5B0, 2, 0%5D, %5B2, 0, 2%5D, %5B0, 2, 0%5D%5D)%0A    assert_equal(degimg, expected_degrees)%0A    assert_equal(idxs, %5B0, 1, 3, 5, 7%5D)%0A%0A%0Adef test_skeleton1_stats():%0A    args = csr.skeleton_to_csgraph(skeleton1)%0A    stats = csr.branch_statistics(*args)%0A%0A

Add incomplete test file for CSR