Dépôt du be graphe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WeaklyConnectedComponentObserver.java 725B

123456789101112131415161718192021222324252627282930
  1. package org.insa.graphs.algorithm.weakconnectivity;
  2. import java.util.ArrayList;
  3. import org.insa.graphs.model.Node;
  4. public interface WeaklyConnectedComponentObserver {
  5. /**
  6. * Notify that the algorithm is entering a new component.
  7. *
  8. * @param curNode Starting node for the component.
  9. */
  10. public void notifyStartComponent(Node curNode);
  11. /**
  12. * Notify that a new node has been found for the current component.
  13. *
  14. * @param node New node found for the current component.
  15. */
  16. public void notifyNewNodeInComponent(Node node);
  17. /**
  18. * Notify that the algorithm has computed a new component.
  19. *
  20. * @param nodes List of nodes in the component.
  21. */
  22. public void notifyEndComponent(ArrayList<Node> nodes);
  23. }