Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.41 KB

README.md

File metadata and controls

15 lines (9 loc) · 1.41 KB

Louvain method

This is a project I developed during my research internship at École Centrale de Marseille. It involves interpreting the Louvain Method and visualizing its results using Python. You have the flexibility to implement your own graph.

In my algorithm, I utilize the adjacency matrix to calculate modularity and employ two dictionaries to collect the classification results. Finally, I use matplotlib to visualize the outcomes.

To use this algorithm, please download all the required files. Enter your graph data into "data.txt" and run "main.py" directly. This will generate a visualization of your graph.

For the visualization aspect, you will need to install the networkx library.

Methode de Louvain

Ceci est un projet que j'ai développé lors de mon stage de recherche à l'École Centrale de Marseille. Il consiste à interpréter la méthode Louvain et à visualiser ses résultats en utilisant Python. Vous avez la possibilité d'implémenter votre propre graphe.

Dans mon algorithme, j'utilise la matrice d'adjacence pour calculer la modularité, j'utilise deux dictionnaires pour collecter les résultats de classification et j'utilise finalement matplotlib pour visualiser les résultats.

Pour utiliser cet algorithme, veuillez télécharger tous les fichiers nécessaires. Entrez les données de votre graphe dans "data.txt" et exécutez directement "main.py". Cela générera une visualisation de votre graphe.