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

why the len(dendo) - 1? #99

Open
yaya159456 opened this issue Dec 28, 2022 · 0 comments
Open

why the len(dendo) - 1? #99

yaya159456 opened this issue Dec 28, 2022 · 0 comments

Comments

@yaya159456
Copy link

>>> G=nx.erdos_renyi_graph(100, 0.01)
>>> dendo = generate_dendrogram(G)
>>> for level in range(len(dendo) - 1) :
>>>     print("partition at level", level,
>>>           "is", partition_at_level(dendo, level))

why need to set len(dendo) - 1? Other words,what the dendo[-1] means?

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