Interface NodeVisitor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface NodeVisitor
The abstract parent type that all BFS visitor must implement and encapsulates the operations for each user-defined problem.

This is a functional interface whose functional method is visit(Node).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(Node node)
    The "visit" operation for different types of user-defined problem.
  • Method Details

    • visit

      void visit(Node node)
      The "visit" operation for different types of user-defined problem.
      Parameters:
      node - The node to visit