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

Type Error in choicerank-tutorial.ipynb #20

Closed
Kzra opened this issue Oct 21, 2021 · 1 comment
Closed

Type Error in choicerank-tutorial.ipynb #20

Kzra opened this issue Oct 21, 2021 · 1 comment

Comments

@Kzra
Copy link

Kzra commented Oct 21, 2021

networkx version == 2.5
choix version == 0.3.4

Running the code cell in 1. Generating sample data lead to the following error:

image_2021-10-21_100337

This can be fixed using:

neighbors = list(graph.successors(src))

The same error also occurred for me in 2. Estimating transistions using choicerank and can be fixed in the same way.

@lucasmaystre
Copy link
Owner

@Kzra thanks for reporting. I will fix the notebook as soon as I get a chance.

lucasmaystre added a commit that referenced this issue Jan 11, 2022
With recent versions of networkx, `graph.successors` does not return a list
anymore. This diff fixes the ChoiceRank tutorial notebook to account for that.
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

2 participants