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

How to prepare the networkx library for Blosm #78

Open
vvoovv opened this issue Dec 18, 2023 · 0 comments
Open

How to prepare the networkx library for Blosm #78

vvoovv opened this issue Dec 18, 2023 · 0 comments

Comments

@vvoovv
Copy link
Member

vvoovv commented Dec 18, 2023

Taken from #72 (comment)


The version of blosm_networkx in the lib folder of the blosm addon is based on the latest release 3.2.1 of NetworkX downloaded from its GitHub repository on 12/16/2023. Only the code in its folder networkx is used.

Blender does not support the scipy and pandas packages, which are part of the NetworkX requirements. Therefore, we have reduced our version (blosm_networkx) by removing all files in it, that use functions from these packages or derivatives of methods that use them.

In detail, we did:

  • Remove all folders named test. They are not needed within the addon.
  • In the file convert.py, of the root folder networkx/, comment out the parts that start with Pandas DataFrame and scipy sparse array - any format.
  • Remove the specified files in the folders listed below and adapt the files named __init__.py in these folders:
    • networkx/: conftest.py, convert_matrix.py, lazy_imports.py.
    • networkx/alorithms/approximations: traveling_salesman.py.
    • networkx/alorithms/assortativity: correlation.py.
    • networkx/alorithms/bipartite: matching.py, matrix.py, spectral.py, covering.py.
    • networkx/alorithms/centrality: eigenvector.py, flow_matrix.py, laplacian.py, subgraph_alg.py, current_flow_betweenness.py, current_flow_betweenness_subset.py, current_flow_closeness.py.
    • networkx/generators: geometric.py, random_graphs.py, spectral_graph_forge.py.
  • Remove the following folders completely:
    • networkx/alorithms/link_analysis
    • networkx/linalg
  • Rename the folder networkx to blosm_networkx.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant