Construct the edge-incidence matrix of the weights graph.
create_edge_incidence(w, n)
w
Weights vector
n
Number of points being clustered