issue_tree
    Preparing search index...

    Function emptyGraph

    • Build an empty Graph with stamped metadata. Used as the base of a build and as the zero-node result of an over-restrictive filter.

      Parameters

      • cachePath: string

        the cache file the graph derives from

      • filtersApplied: Record<string, unknown>

        the filter options recorded into meta.filtersApplied

      Returns Graph

      an empty Graph with generatedAt set to now

      emptyGraph('c.json', { scope: 'open' }).meta.cachePath  // => 'c.json'