Skip to content

Edge weights do not apply when upgraded to Python 3.10 #43

Open
@simonvw95

Description

@simonvw95

I managed to get Forceatlas2 working in my Python 3.10 environment. The algorithm itself and its iterative procedure with default parameters work flawlessly. However, I ran into issues when I was specifying edge weights to be included in the algorithm (with the option 'edgeWeightInfluence'). Even when specifying for the edge weights to be included with the aforementioned argument, the algorithm seemingly ignores the argument. Running the same script in a Python 3.5.6 environment leads to the correct and expected results (the edge weights are now properly taken into account). The only difference between the two environments are the Python version.

I have seen other people that have mentioned to implement FA2 in other versions of Python (e.g. 3.9 #35). I would caution others to pay close attention whether all specific arguments of the FA2 function are working in their upgraded Python versions.

Virtual environment
Package Version


colorama 0.4.6
contourpy 1.0.6
cycler 0.11.0
Cython 0.29.32
fa2 0.3.5
fonttools 4.38.0
igraph 0.10.2
joblib 1.2.0
kiwisolver 1.4.4
matplotlib 3.6.2
networkx 2.8.8
numpy 1.23.5
packaging 21.3
pandas 1.5.2
Pillow 9.3.0
pip 22.3.1
pyparsing 3.0.9
python-dateutil 2.8.2
python-igraph 0.10.2
pytz 2022.6
scikit-learn 1.1.3
scipy 1.9.3
seaborn 0.12.1
setuptools 60.2.0
Shapely 1.8.5.post1
six 1.16.0
texttable 1.6.7
threadpoolctl 3.1.0
tqdm 4.64.1
wheel 0.37.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions