Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

understand centrality scores #951

Open
z-spider opened this issue Feb 6, 2025 · 0 comments
Open

understand centrality scores #951

z-spider opened this issue Feb 6, 2025 · 0 comments

Comments

@z-spider
Copy link

z-spider commented Feb 6, 2025

Hi,

Thank you for this great package. The average clustering in a package is calculated with the following code

clusters = adata.obs[cluster_key].values
nx.algorithms.cluster.average_clustering(graph, clusters)

or in file:

fun_dict[c.s] = partial(nx.algorithms.cluster.average_clustering, graph)

But if I use subgraph, like nx.algorithms.cluster.average_clustering(graph.subgraph(clusters)) to calculate, the result will be different, and I find the second result easier to interpret.
I'm not an expert on this, should it be modified here? Or maybe I misunderstood something?

Any explanationwould be greatly appreciated!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant