(
        self,
        spec: SelectionCriteria
    )
return direct_nodes, indirect_nodes
Get all nodes specified by the single selection criteria.

        - collect the directly included nodes
        - find their specified relatives
        - perform any selector-specific expansion
Get all nodes specified by the single selection criteria.
Get all nodes specified by the single selection criteria .
def get_nodes_from_criteria(
        self,
        spec: SelectionCriteria
    ) -> Tuple[Set[UniqueId], Set[UniqueId]]:
        """Get all nodes specified by the single selection criteria.

        - collect the directly included nodes
        - find their specified relatives
        - perform any selector-specific expansion
        """

        nodes = self.graph.nodes()
        try:
            collected = self.select_included(nodes, spec)
        except InvalidSelectorException:
            fire_event(SelectorReportInvalidSelector(
                selector_methods=self.SELECTOR_METHODS,
                spec_method=spec.method,
                raw_spec=spec.raw
            ))
            return set(), set()

        neighbors = self.collect_specified_neighbors(spec, collected)
        direct_nodes, indirect_nodes = self.expand_selection(
            selected=(collected | neighbors),
            indirect_selection=spec.indirect_selection
        )
        return direct_nodes, indirect_nodes
def get_nodes_from_criteria ( self , spec : SelectionCriteria ) -> Tuple [ Set [ UniqueId ] , Set [ UniqueId ] ] : nodes = self . graph . nodes ( ) try : collected = self . select_included ( nodes , spec ) except InvalidSelectorException : fire_event ( SelectorReportInvalidSelector ( selector_methods = self . SELECTOR_METHODS , spec_method = spec . method , raw_spec = spec . raw ) ) return set ( ) , set ( ) neighbors = self . collect_specified_neighbors ( spec , collected ) direct_nodes , indirect_nodes = self . expand_selection ( selected = ( collected | neighbors ) , indirect_selection = spec . indirect_selection ) return direct_nodes , indirect_nodes