I have a fairly large sparse matrix. The sparse matrix have elements in the below format. I want to create a graph network using a networkx library. Now, how should I approach?
Row and column are nodes and they are connected if the value of the matrix element is 1.
In [44]: print(a)
(0, 0) 1
(1, 2) 1
(1, 3) 1
(2, 3) 1