All Projects → kjahan → Community

kjahan / Community

A Python implementation of Girvan-Newman algorithm

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Community

topometry
A comprehensive dimensional reduction framework to recover the latent topology from high-dimensional data.
Stars: ✭ 64 (-48.8%)
Mutual labels:  clustering, graphs
Awesome Community Detection
A curated list of community detection research papers with implementations.
Stars: ✭ 1,874 (+1399.2%)
Mutual labels:  clustering, social-network
Dat8
General Assembly's 2015 Data Science course in Washington, DC
Stars: ✭ 1,516 (+1112.8%)
Mutual labels:  clustering
Mern Social Network
Building a social network with MERN stack
Stars: ✭ 122 (-2.4%)
Mutual labels:  social-network
Socialworth
A PHP library for determining the popularity of a URL across social networks.
Stars: ✭ 119 (-4.8%)
Mutual labels:  social-network
Ml Email Clustering
Email clustering with machine learning
Stars: ✭ 116 (-7.2%)
Mutual labels:  clustering
Concierge
Modular chat bot. (Karma + Sassy + Hubot) * (Discord + Facebook + Messenger + Slack + Skype + Telegram + Hipchat + ...) = Concierge
Stars: ✭ 121 (-3.2%)
Mutual labels:  social-network
Hify
Social network powered by firebase
Stars: ✭ 115 (-8%)
Mutual labels:  social-network
Adaptive clustering
Lightweight and Accurate Point Cloud Clustering
Stars: ✭ 125 (+0%)
Mutual labels:  clustering
Ml Dl Scripts
The repository provides usefull python scripts for ML and data analysis
Stars: ✭ 119 (-4.8%)
Mutual labels:  clustering
Imagecluster
Cluster images based on image content using a pre-trained deep neural network, optional time distance scaling and hierarchical clustering.
Stars: ✭ 122 (-2.4%)
Mutual labels:  clustering
Msmbuilder
🏗 Statistical models for biomolecular dynamics 🏗
Stars: ✭ 118 (-5.6%)
Mutual labels:  clustering
Materialabout
It's a material-design about screen to use on your Android apps. A developer profile and application information easy to integrate. 🔖
Stars: ✭ 1,511 (+1108.8%)
Mutual labels:  social-network
Sharer.js
🔛 🔖 Create your own social share buttons. No jquery.
Stars: ✭ 1,624 (+1199.2%)
Mutual labels:  social-network
Peartree
peartree: A library for converting transit data into a directed graph for sketch network analysis.
Stars: ✭ 116 (-7.2%)
Mutual labels:  graphs
Hazelcast Nodejs Client
Hazelcast IMDG Node.js Client
Stars: ✭ 124 (-0.8%)
Mutual labels:  clustering
Clust4j
A suite of classification clustering algorithm implementations for Java. A number of partitional, hierarchical and density-based algorithms including DBSCAN, k-Means, k-Medoids, MeanShift, Affinity Propagation, HDBSCAN and more.
Stars: ✭ 115 (-8%)
Mutual labels:  clustering
Airesis
The Social Network for eDemocracy
Stars: ✭ 116 (-7.2%)
Mutual labels:  social-network
Data Structures
Data-Structures using C++.
Stars: ✭ 121 (-3.2%)
Mutual labels:  graphs
Kepler
The open source full-stack geosocial network platform
Stars: ✭ 125 (+0%)
Mutual labels:  social-network

Image description

Detecting Communities in Weighted Graphs

Input

A weighted graph G. See graph.txt file as a sample for the input graph format. It's a CSV file where each line has the following format:

u,v,w 

Above line specifies that there is an edge between node u and v with positive weight w. The lowest id should be zero and the nodes id's increase. If you want to used this code for an unweighted graph, simply set the weight equal to one on each input line.

Output

This code runs Girvan-Newman algorithm and returns a list of detected communities with maximum modularity.

Dependencies

For running the python code, you need to install Python 3 and NetworkX package on your machine. Check link below for more details:

https://networkx.github.io/documentation/latest/install.html

Girvan-Newman Algorithm Description

You can find the details for how Girvan-Newman algorithm works from the following link:

http://www.kazemjahanbakhsh.com/codes/cmty.html

How to run Python script

python cmty.py graph.txt

If you have any question about the code or you want to report a bug, please contact me @ k DOT jahanbakhsh AT gmail DOT com.

Licence

Copyright (c) 2013 Black Square Media Ltd. All rights reserved.
(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].