Utils¶
Misc¶
Contains tools to help some boring tasks
-
stdog.utils.misc.
ig2sparse
(G, transpose=False, attr=None, precision=32)[source]¶ Given an igraph instance returns the sparse adjacency matrix in COO format.
Parameters: - G (igraph instance) –
- transpose (bool) – If the adjacency matrix should be transposed or not
- attr (str) – The name of weight attribute
- precision (int) – The precision used to store the weight attributes
Returns: L
Return type: COO Sparse matrix