GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - adityat/fastconsensus: Fast consensus clustering in networks

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
notebooks
notebooks
 
 
sample_scripts
sample_scripts
 
 
src/fastconsensus
src/fastconsensus
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

Fastconsensus

Fastconsensus is a Python package that implements a fast consensus clustering algorithm for complex networks. It provides an efficient way to perform community detection on large-scale networks using the igraph library.

Installation

From source

To install fastconsensus from source, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/fastconsensus.git
    cd fastconsensus
  2. Create a conda environment (optional but recommended):

    conda env create -f environment.yml
    conda activate fastconsensus
  3. Install the package:

    pip install -e .

Usage

Here's a basic example of how to use fastconsensus:

import igraph as ig
from fastconsensus import fast_consensus_clustering, read_graph_from_file

# Read a graph from a file
graph = read_graph_from_file("path/to/your/graph.gml", format="gml")

# Perform fast consensus clustering
partition = fast_consensus_clustering(graph, n_partitions=20, threshold=0.2)

# Print the resulting partition
print(partition)

For more detailed examples and usage scenarios, please refer to the Jupyter notebooks in the notebooks/ directory.

Running the Notebooks

To run the example notebooks:

  1. Ensure you have Jupyter installed in your environment:

    conda install jupyter
  2. Navigate to the notebooks/ directory and start Jupyter:

    cd notebooks
    jupyter notebook
  3. Open and run the notebook

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Fast consensus clustering in networks

Topics

community-detectionconsensusconsensus-clusteringgraph-clustering

Resources

Readme
MIT license
Activity

Stars

22 stars

Watchers

3 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.