LeidenOptions

Options & Configuration · AiDotNet.RetrievalAugmentedGeneration.Graph.Communities

Configuration options for the Leiden community detection algorithm.

For Beginners

The Leiden algorithm finds groups (communities) of tightly connected nodes.

  • Resolution: Higher values find smaller, more fine-grained communities. Lower values merge into larger groups.
  • MaxIterations: How many times the algorithm refines the communities. More iterations = better quality but slower.

Constructors

Constructor Summary
LeidenOptions()

Properties

Property Summary
double? Resolution { get; set; } Resolution parameter controlling community granularity.
int? MaxIterations { get; set; } Maximum number of iterations for the Leiden algorithm.
int? Seed { get; set; } Random seed for reproducibility.