Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assortativity module #122

Merged
merged 19 commits into from
Jun 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: updated the convert_to_graph method
  • Loading branch information
nwlandry committed Jun 14, 2022
commit b0ca0e066e93dc4b9b02a69478a4fae09c968412
2 changes: 1 addition & 1 deletion xgi/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def convert_to_graph(H):
"""

A = adjacency_matrix(H) # This is unweighted by design
G = nx.from_scipy_sparse_matrix(A)
G = nx.from_scipy_sparse_array(A)
G = nx.relabel_nodes(G, {i: node for i, node in enumerate(H.nodes)})
return G

Expand Down