Class Modularity

java.lang.Object
org.graphstream.stream.SinkAdapter
org.graphstream.algorithm.measure.CommunityMeasure
org.graphstream.algorithm.measure.Modularity
All Implemented Interfaces:
Algorithm, DynamicAlgorithm, org.graphstream.stream.AttributeSink, org.graphstream.stream.ElementSink, org.graphstream.stream.Sink

public class Modularity
extends CommunityMeasure
Computes and updates the modularity of a given graph as it evolves.
Author:
Yoann Pigné, Guillaume-Jean Herbiet
Scientific Reference :
M. E. Newman and M. Girvan, “Finding and Evaluating Community Structure in Networks,” Physical Review E (Statistical, Nonlinear, and Soft Matter Physics), vol. 69, no. 2, pp. 026 113+, Feb 2004.
  • Constructor Details

    • Modularity

      public Modularity()
      New modularity algorithm using the default marker for communities and no weight on edges.
    • Modularity

      public Modularity​(String marker)
      New modularity algorithm with a given marker for communities and no weight on edges.
      Parameters:
      marker - name of the attribute marking the communities.
    • Modularity

      public Modularity​(String marker, String weightMarker)
      New weighted modularity algorithm with a given marker for communities and the given weightMarker for edge weights.
      Parameters:
      marker - name of the attribute marking the communities.
      weightMarker - name of the attribute marking the weight of edges.
  • Method Details