Comments (3)
No, no such values per community are returned. But you can easily calculate this yourself using standard python and functionality of igraph
. If you are not able to figure it out, let me know.
from leidenalg.
It would be nice if you have an example already that you can share. Thank you
from leidenalg.
Sure, here's an example of how to calculate some statistics per cluster
#%% Create graph
G = ig.Graph.Famous('Zachary')
#%% Run clustering
resolution = 0.05
part = la.find_partition(G, la.CPMVertexPartition,
resolution_parameter=resolution)
#%% Calculate statistics per cluster
Qc = []
for H in part.subgraphs():
ec = H.ecount()
nc = H.vcount()
Qc.append(2*ec - resolution*nc*(nc - 1))
print(e, nc, Qc)
print(sum(Qc), part.quality())
from leidenalg.
Related Issues (20)
- python Segmentation fault: 11 when running the partition function of leidenalg HOT 4
- Memory Error with Clustering with Leiden algorithm matrix - When to use matrix vs igraph method? HOT 8
- find_partition_temporal order of list of membership HOT 1
- Get different result after upgrading to 0.10.1 HOT 2
- Problems installing leidenalg on a remote cluster HOT 4
- Can't Finished running on million nodes and one hundred million edges data HOT 1
- Release supporting python-igraph 0.11
- Assigning new nodes to existing communities HOT 4
- Weighted CPM clustering takes much longer when scale of weights is higher HOT 1
- resolution_profile/quality() for temporal communties HOT 1
- Time Slices to Layers Returns Uniform Account Count Across All Layers, HOT 1
- A bunch of strings are broken HOT 1
- Disconnected communities with ModularityVertexPartition on very large graphs HOT 3
- Dendrogram retrieval? HOT 3
- Error while using Leiden algorithm in Seurat HOT 1
- Error with find_partition_multiplex HOT 1
- find_partition_multiplex HOT 4
- Links to igraph documentation should be updated
- Python 3.12 invalid escape sequences warnings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leidenalg.