GiulioRossetti / cdlib

Community Discovery Library
http://cdlib.readthedocs.io
BSD 2-Clause "Simplified" License
374 stars 71 forks source link

plot_network_clusters() got an unexpected keyword argument 'top_k' #146

Closed sblbl closed 3 years ago

sblbl commented 3 years ago

Describe the bug top_k attr not recognised

To Reproduce Steps to reproduce the behavior:

Expected behavior Should plot the k most influential clusters, according to the docs

Screenshots TypeError Traceback (most recent call last)

in 2 3 pos = nx.spring_layout(g) ----> 4 viz.plot_network_clusters(g, leiden_coms, pos, figsize=(20, 20), plot_labels=True, top_k=5) TypeError: plot_network_clusters() got an unexpected keyword argument 'top_k'
github-actions[bot] commented 3 years ago

Thanks for submitting your first issue!

GiulioRossetti commented 3 years ago

Hi, I tested your snippet on the current version of the library (the one from the master branch of this repository) and it works. It is likely you have installed an older version of CDlib in your conda environment.

Giulio

sblbl commented 3 years ago

I'll verify, thank you very much!