Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/DepGraph"

This source code is from https://github.com/jriecken/dependency-graph Just added "any" types here, wrapper everything into exported class. We cant use a package itself because we want to package "everything-in-it" for the frontend users of TypeORM.

Index

Classes

Functions

Functions

createDFS

  • createDFS(edges: any, leavesOnly: any, result: any): DFS
  • Helper for creating a Depth-First-Search on a set of edges.

    Detects cycles and throws an Error if one is detected.

    Parameters

    • edges: any

      The set of edges to DFS through

    • leavesOnly: any

      Whether to only return "leaf" nodes (ones who have no edges)

    • result: any

      An array in which the results will be populated

    Returns DFS

Generated using TypeDoc