Resolves module specifiers to absolute file paths
Reads file text and provides the cache version
Shortest cycle that passes through filePath, or null when the file is
not part of a non-trivial strongly connected component.
Outgoing runtime edges of a file (loads it if needed).
Edges from filePath to other members of its strongly connected component.
Files that could not be read while building the graph.
Lazily built value-import graph with incremental Tarjan SCC computation, used for circular dependency detection.
Files are read through a GraphFileSource (disk or a ts-morph file system) instead of the ts-morph project, so the graph does not depend on which files a scan batch currently has loaded.
import typeand imports whose specifiers are all type-only are skippedexport * from/export { x } frombarrels are edges (followed).d.tsfiles are droppedParse results are shared across instances and keyed by the file version (see clearImportGraphParseCache).