This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Commit cb9ccf7
committed
refactor: remove duplicated adjacency map building, use GraphUtils
code_cleanup: GraphIsomorphismAnalyzer had a private buildAdjacencyMap()
method identical to GraphUtils.buildAdjacencyMap() — removed it and
switched to the shared utility. MotifAnalyzer had an inline 8-line
neighbor cache loop identical to GraphUtils — replaced with one-liner.
Both changes reduce duplication and ensure consistent null-safety
handling (GraphUtils checks for null neighbors). All 1009 tests pass
(2 pre-existing InfluenceSpreadSimulator failures unchanged).1 parent f097681 commit cb9ccf7
2 files changed
Lines changed: 3 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 212 | | |
221 | 213 | | |
222 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 93 | + | |
102 | 94 | | |
103 | 95 | | |
104 | 96 | | |
| |||
0 commit comments