vtraag / leidenalg

Implementation of the Leiden algorithm for various quality functions to be used with igraph in Python.
GNU General Public License v3.0
575 stars 77 forks source link

How to use Leiden algorithm for a directed, weighted graph? #124

Closed Ishitori closed 1 year ago

Ishitori commented 1 year ago

Hi there,

I read the code and documentation, but didn't find an example to launch Leiden algorithm on directed weighted graph. Is it as easy as:

  1. Creating directed iGraph
  2. Calling leidenalg.find_partition with weights equal to name of the weight attribute?