parameters: (self, results)
docstring: Print the depends reports result data.
docstring_summary: Print the depends reports result data.
docstring_tokens: Print the depends reports result data .
function: def _print_depends_reports(self, results):
          """Print the depends reports result data."""
  
          # pylint: disable=too-many-branches
          if DependsReportTypes.DIRECT_DEPENDS.name in results:
              print("\nNodes that directly depend on:")
              for node in results[DependsReportTypes.DIRECT_DEPENDS.name]:
                  self._print_results_node_list(f'=>depends on {node}:',
                                                results[DependsReportTypes.DIRECT_DEPENDS.name][node])
  
          if DependsReportTypes.COMMON_DEPENDS.name in results:
              print("\nNodes that commonly depend on:")
              for nodes in results[DependsReportTypes.COMMON_DEPENDS.name]:
                  self._print_results_node_list(
                      f'=>depends on {nodes}:',
                      results[DependsReportTypes.COMMON_DEPENDS.name][nodes])
  
          if DependsReportTypes.EXCLUDE_DEPENDS.name in results:
              print("\nNodes that depend on a node, but exclude others:")
              for nodes in results[DependsReportTypes.EXCLUDE_DEPENDS.name]:
                  self._print_results_node_list(
                      f"=>depends: {nodes[0]}, exclude: {nodes[1:]}:",
                      results[DependsReportTypes.EXCLUDE_DEPENDS.name][nodes])
  
          if DependsReportTypes.GRAPH_PATHS.name in results:
              print("\nDependency graph paths:")
              for nodes in results[DependsReportTypes.GRAPH_PATHS.name]:
                  self._print_results_node_list(f"=>start node: {nodes[0]}, end node: {nodes[1]}:", [
                      f"{' -> '.join(path)}"
                      for path in results[DependsReportTypes.GRAPH_PATHS.name][nodes]
                  ])
  
          if DependsReportTypes.CRITICAL_EDGES.name in results:
              print("\nCritical Edges:")
              for nodes in results[DependsReportTypes.CRITICAL_EDGES.name]:
                  self._print_results_node_list(
                      f"=>critical edges between {nodes[0]} and {nodes[1]}:",
                      results[DependsReportTypes.CRITICAL_EDGES.name][nodes])
  
          if DependsReportTypes.IN_DEGREE_ONE.name in results:
              print("\nLibrary nodes with 1 or 0 dependers:")
              for count, nodes in enumerate(results[DependsReportTypes.IN_DEGREE_ONE.name], start=1):
                  print(f"    {count}: '{nodes[0]}' <- '{nodes[1]}'")
function_tokens: def _print_depends_reports ( self , results ) : # pylint: disable=too-many-branches if DependsReportTypes . DIRECT_DEPENDS . name in results : print ( "\nNodes that directly depend on:" ) for node in results [ DependsReportTypes . DIRECT_DEPENDS . name ] : self . _print_results_node_list ( f'=>depends on {node}:' , results [ DependsReportTypes . DIRECT_DEPENDS . name ] [ node ] ) if DependsReportTypes . COMMON_DEPENDS . name in results : print ( "\nNodes that commonly depend on:" ) for nodes in results [ DependsReportTypes . COMMON_DEPENDS . name ] : self . _print_results_node_list ( f'=>depends on {nodes}:' , results [ DependsReportTypes . COMMON_DEPENDS . name ] [ nodes ] ) if DependsReportTypes . EXCLUDE_DEPENDS . name in results : print ( "\nNodes that depend on a node, but exclude others:" ) for nodes in results [ DependsReportTypes . EXCLUDE_DEPENDS . name ] : self . _print_results_node_list ( f"=>depends: {nodes[0]}, exclude: {nodes[1:]}:" , results [ DependsReportTypes . EXCLUDE_DEPENDS . name ] [ nodes ] ) if DependsReportTypes . GRAPH_PATHS . name in results : print ( "\nDependency graph paths:" ) for nodes in results [ DependsReportTypes . GRAPH_PATHS . name ] : self . _print_results_node_list ( f"=>start node: {nodes[0]}, end node: {nodes[1]}:" , [ f"{' -> '.join(path)}" for path in results [ DependsReportTypes . GRAPH_PATHS . name ] [ nodes ] ] ) if DependsReportTypes . CRITICAL_EDGES . name in results : print ( "\nCritical Edges:" ) for nodes in results [ DependsReportTypes . CRITICAL_EDGES . name ] : self . _print_results_node_list ( f"=>critical edges between {nodes[0]} and {nodes[1]}:" , results [ DependsReportTypes . CRITICAL_EDGES . name ] [ nodes ] ) if DependsReportTypes . IN_DEGREE_ONE . name in results : print ( "\nLibrary nodes with 1 or 0 dependers:" ) for count , nodes in enumerate ( results [ DependsReportTypes . IN_DEGREE_ONE . name ] , start = 1 ) : print ( f"    {count}: '{nodes[0]}' <- '{nodes[1]}'" )