You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2026. It is now read-only.
refactor: cache adjacency map in LinkPredictionAnalyzer via lazy init
predict(), predictEnsemble(), and evaluatePairs() each independently
called GraphUtils.buildAdjacencyMap(graph), rebuilding the full O(V+E)
adjacency structure on every method invocation. When a user calls
multiple methods on the same analyzer instance (e.g. predict then
predictEnsemble), the map was rebuilt redundantly.
Introduce a lazily-initialized cachedAdjacency field that builds the
map once on first access and reuses it across all method calls. Also
removes the unused buildAdjacency(vertices) wrapper method that
ignored its parameter.
0 commit comments