scikit-network is an open-source python package for the analysis of large graphs.
Each graph is represented by a sparse matrix in
scipy format (CSR).
scikit-network, run this command in your terminal:
$ pip install scikit-network
Alternately, you can download the sources from the Github repo and run:
$ cd <scikit-network folder> $ python setup.py develop
scikit-network in Python:
import sknetwork as skn
Check our tutorial for various ways of loading a graph (from a list of edges, a dataframe or a CSV file, for instance).
Each algorithm is represented as an object with a
from sknetwork.data import karate_club from sknetwork.clustering import Louvain adjacency = karate_club() algo = Louvain() algo.fit(adjacency) labels = algo.labels_