Pre-Filter Nodes in Graph Initialization (Medium Value, Low Risk)
File/Line: MyGraph.ts:45-90
Description: In initGraph(), collect all candidate nodes first (filtering exclusions), then iterate once to add nodes and edges. Avoid repeated getCache() calls by batching metadata fetches.
Why: For vaults with many files, the nested loops perform redundant checks and cache lookups. This reduces initialization time (indexing speed) without changing behavior. Low risk; structural optimization.