{"id":13605242,"url":"https://github.com/kjahan/community","last_synced_at":"2025-04-12T05:32:13.085Z","repository":{"id":4378297,"uuid":"5515036","full_name":"kjahan/community","owner":"kjahan","description":"A Python implementation of Girvan-Newman algorithm","archived":false,"fork":false,"pushed_at":"2023-10-27T12:29:29.000Z","size":60,"stargazers_count":144,"open_issues_count":10,"forks_count":93,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-07T10:40:54.699Z","etag":null,"topics":["clustering","community-detection","graphs","machine-learning","python","social-network"],"latest_commit_sha":null,"homepage":"http://www.kazemjahanbakhsh.com/codes/cmty.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kjahan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2012-08-22T20:40:20.000Z","updated_at":"2024-10-30T23:53:32.000Z","dependencies_parsed_at":"2024-01-19T10:12:14.916Z","dependency_job_id":"8af4a62f-6165-4b50-bcdf-6521fcfbba1c","html_url":"https://github.com/kjahan/community","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":"0.34285714285714286","last_synced_commit":"7c395178973497cc8746676ea0bebbdcd2068bbd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjahan%2Fcommunity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjahan%2Fcommunity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjahan%2Fcommunity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjahan%2Fcommunity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjahan","download_url":"https://codeload.github.com/kjahan/community/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248524003,"owners_count":21118606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clustering","community-detection","graphs","machine-learning","python","social-network"],"created_at":"2024-08-01T19:00:56.351Z","updated_at":"2025-04-12T05:32:12.689Z","avatar_url":"https://github.com/kjahan.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![Image description](https://images.theconversation.com/files/225699/original/file-20180702-116143-1ic135n.jpg?ixlib=rb-1.1.0\u0026q=45\u0026auto=format\u0026w=1200\u0026h=1200.0\u0026fit=crop)\n\nDetecting Communities in Weighted Graphs\n========================================\n\n## Input\n \nA 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: \n\n\tu,v,w \n\nAbove line specifies that there is an edge between node u and v with positive weight w. \nThe lowest id should be zero and the nodes id's increase. If you want to used this code for an unweighted graph, \nsimply set the weight equal to one on each input line.\n\n## Output\n\nThis code runs Girvan-Newman algorithm and returns a list of detected communities with maximum modularity.\n\n## Dependencies\n\nFor running the python code, you need to install Python 3 and NetworkX package on your machine. Check link below for more details:\n\n\thttps://networkx.github.io/documentation/latest/install.html\n\n## Girvan-Newman Algorithm Description\n\nYou can find the details for how Girvan-Newman algorithm works from the following link: \n\n\thttp://www.kazemjahanbakhsh.com/codes/cmty.html\n\n## How to run Python script\n\n\tpython cmty.py graph.txt\n\nIf you have any question about the code or you want to report a bug, please contact me @ \u003cb\u003ek DOT jahanbakhsh AT gmail DOT com\u003c/b\u003e.\n\n## Licence\n\n    Copyright (c) 2013 Black Square Media Ltd. All rights reserved.\n    (The MIT License)\n\n    Permission is hereby granted, free of charge, to any person obtaining\n    a copy of this software and associated documentation files (the\n    'Software'), to deal in the Software without restriction, including\n    without limitation the rights to use, copy, modify, merge, publish,\n    distribute, sublicense, and/or sell copies of the Software, and to\n    permit persons to whom the Software is furnished to do so, subject to\n    the following conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjahan%2Fcommunity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjahan%2Fcommunity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjahan%2Fcommunity/lists"}