{"id":15621971,"url":"https://github.com/taynaud/python-louvain","last_synced_at":"2025-04-13T02:00:01.705Z","repository":{"id":16614460,"uuid":"65826230","full_name":"taynaud/python-louvain","owner":"taynaud","description":"Louvain Community Detection","archived":false,"fork":false,"pushed_at":"2024-03-16T17:04:10.000Z","size":231,"stargazers_count":987,"open_issues_count":14,"forks_count":200,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-06T00:04:54.654Z","etag":null,"topics":["community-detection","louvain-method","networkx"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taynaud.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-16T14:18:17.000Z","updated_at":"2025-04-03T09:09:19.000Z","dependencies_parsed_at":"2024-03-16T18:49:27.858Z","dependency_job_id":"02694d00-384f-4584-97d6-9ff5eb9f2677","html_url":"https://github.com/taynaud/python-louvain","commit_stats":{"total_commits":108,"total_committers":25,"mean_commits":4.32,"dds":0.6759259259259259,"last_synced_commit":"638804ae636dc65306900ef6518ca0a1c9202566"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taynaud%2Fpython-louvain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taynaud%2Fpython-louvain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taynaud%2Fpython-louvain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taynaud%2Fpython-louvain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taynaud","download_url":"https://codeload.github.com/taynaud/python-louvain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654046,"owners_count":21140235,"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":["community-detection","louvain-method","networkx"],"created_at":"2024-10-03T09:52:26.918Z","updated_at":"2025-04-13T02:00:01.685Z","avatar_url":"https://github.com/taynaud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Louvain Community Detection\n===========================\n\n.. image:: https://travis-ci.org/taynaud/python-louvain.svg?branch=master\n    :target: https://travis-ci.org/taynaud/python-louvain\n\n.. image:: https://readthedocs.org/projects/python-louvain/badge/?version=latest\n    :target: http://python-louvain.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\nInstalling\n----------\n\nTo build and install from source, run\n\n.. code-block:: shell\n\n    python setup.py install\n\nYou can also install from pip with\n\n.. code-block:: shell\n\n    pip install python-louvain\n\n\nThe package name on pip is :code:`python-louvain` \nbut it is imported as :code:`community` in python. \nMore documentation for this module can be found at\n`http://python-louvain.readthedocs.io/ \u003chttp://python-louvain.readthedocs.io/\u003e`_\n\n\nUsage\n-----\n\nTo use as a Python library\n\n.. code-block:: python\n\n    from community import community_louvain\n    import matplotlib.cm as cm\n    import matplotlib.pyplot as plt\n    import networkx as nx\n\n    # load the karate club graph\n    G = nx.karate_club_graph()\n\n    # compute the best partition\n    partition = community_louvain.best_partition(G)\n\n    # draw the graph\n    pos = nx.spring_layout(G)\n    # color the nodes according to their partition\n    cmap = cm.get_cmap('viridis', max(partition.values()) + 1)\n    nx.draw_networkx_nodes(G, pos, partition.keys(), node_size=40, \n                           cmap=cmap, node_color=list(partition.values()))\n    nx.draw_networkx_edges(G, pos, alpha=0.5)\n    plt.show()\n\n\n\nIt can also be run on the command line\n\n.. code-block:: bash\n\n     $ community \u003cfilename\u003e\n\nwhere :code:`filename` is a binary file as generated by the\nconvert utility distributed with the C implementation at \n`https://sites.google.com/site/findcommunities/ \u003chttps://sites.google.com/site/findcommunities/\u003e`_\nHowever as this is mostly for debugging purposes its use should be avoided.\nInstead importing this library for use in Python is recommended.\n\n\nDocumentation\n-------------\n\nYou can find documentation at `https://python-louvain.readthedocs.io/ \u003chttps://python-louvain.readthedocs.io/\u003e`_\n\nTo generate documentation, run\n\n.. code-block:: shell\n\n     pip install numpydoc sphinx\n     cd docs\n     make\n\nTests\n-----\n\nTo run tests, run\n\n.. code-block:: shell\n\n     pip install nose\n     python setup.py test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaynaud%2Fpython-louvain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaynaud%2Fpython-louvain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaynaud%2Fpython-louvain/lists"}