You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one creates a weighted, undirected graph from an adjacency matrix, wouldn't it make sense to check if the adjacency matrix is symmetric? This check was also introduced in rigraph I think, see igraph/rigraph#182.
If one creates a weighted, undirected graph from an adjacency matrix, wouldn't it make sense to check if the adjacency matrix is symmetric? This check was also introduced in
rigraph
I think, see igraph/rigraph#182.I am referring to this function:
python-igraph/src/igraph/sparse_matrix.py
Line 154 in 4c82c9d
A simple check could be something like
symmetric = not np.any((matrix!=matrix.T).data)
(here assuming that it is scipy.sparse.csr_matrix).Here is a simple example (not the most efficient way to check the behavior though):
The text was updated successfully, but these errors were encountered: