Interface TraversalStrategy.Builder

  • Method Details

    • edgeTypes

      Edge types to follow. When omitted, all edge types are traversed.

      Parameters:
      edgeTypes - Edge types to follow. When omitted, all edge types are traversed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edgeTypes

      TraversalStrategy.Builder edgeTypes(String... edgeTypes)

      Edge types to follow. When omitted, all edge types are traversed.

      Parameters:
      edgeTypes - Edge types to follow. When omitted, all edge types are traversed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • direction

      TraversalStrategy.Builder direction(String direction)

      Direction of edge traversal.

      Valid values:

      • OUTGOING - Follow edges pointing away from the current node (source -> target).

      • INCOMING - Follow edges pointing toward the current node (target -> source).

      • BOTH - Follow edges in both directions.

      Parameters:
      direction - Direction of edge traversal.

      Valid values:

      • OUTGOING - Follow edges pointing away from the current node (source -> target).

      • INCOMING - Follow edges pointing toward the current node (target -> source).

      • BOTH - Follow edges in both directions.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • direction

      Direction of edge traversal.

      Valid values:

      • OUTGOING - Follow edges pointing away from the current node (source -> target).

      • INCOMING - Follow edges pointing toward the current node (target -> source).

      • BOTH - Follow edges in both directions.

      Parameters:
      direction - Direction of edge traversal.

      Valid values:

      • OUTGOING - Follow edges pointing away from the current node (source -> target).

      • INCOMING - Follow edges pointing toward the current node (target -> source).

      • BOTH - Follow edges in both directions.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxDepth

      TraversalStrategy.Builder maxDepth(Integer maxDepth)

      The maximum traversal depth from the seed node, from 1 to 3.

      Parameters:
      maxDepth - The maximum traversal depth from the seed node, from 1 to 3.
      Returns:
      Returns a reference to this object so that method calls can be chained together.