Class WeaklyConnectedComponentAlgorithm<T>

java.lang.Object
tools.refinery.interpreter.rete.itc.alg.representative.RepresentativeElectionAlgorithm<T>
tools.refinery.interpreter.rete.itc.alg.representative.WeaklyConnectedComponentAlgorithm<T>
All Implemented Interfaces:
IGraphObserver<T>

public class WeaklyConnectedComponentAlgorithm<T> extends RepresentativeElectionAlgorithm<T>
  • Constructor Details

    • WeaklyConnectedComponentAlgorithm

      public WeaklyConnectedComponentAlgorithm(Graph<T> graph)
  • Method Details

    • initializeComponents

      protected void initializeComponents()
      Specified by:
      initializeComponents in class RepresentativeElectionAlgorithm<T>
    • edgeInserted

      public void edgeInserted(T source, T target)
      Description copied from interface: IGraphObserver
      Used to notify when an edge is inserted into the graph.
      Parameters:
      source - the source of the edge
      target - the target of the edge
    • edgeDeleted

      public void edgeDeleted(T source, T target)
      Description copied from interface: IGraphObserver
      Used to notify when an edge is deleted from the graph.
      Parameters:
      source - the source of the edge
      target - the target of the edge