TraversalFilter typedef

TraversalFilter = TraversalDecision Function(Triple triple, int depth)

Function type for controlling subgraph traversal

This function is called for each triple encountered during subgraph traversal to determine whether the triple should be included and whether traversal should continue from its object.

Parameters:

  • triple The current triple being evaluated
  • depth The current traversal depth (root subject is at depth 0)

Returns: A TraversalDecision indicating how to handle this triple

Implementation

typedef TraversalFilter = TraversalDecision Function(Triple triple, int depth);