Build the sparse double-edge indicator matrix Jd from a graph adjacency matrix.
Jd
build_Jd(adj_mat)
adj_mat
The original adjacency matrix.
A double-edge indicator matrix Jd in sparse form.