Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

feat: GraphNeighborhoodAnalyzer - #72

Merged
sauravbhattacharya001 merged 1 commit into
masterfrom
builder/neighborhood-analyzer
Mar 14, 2026
Merged

sauravbhattacharya001 merged 1 commit into
masterfrom
builder/neighborhood-analyzer

Conversation

@sauravbhattacharya001

Copy link
Copy Markdown
Owner

k-hop neighborhood analysis: BFS layers, growth profiles, expansion rates, local density, Jaccard/overlap similarity, boundary vertices, aggregate stats, ranking, text report. 47 tests.

New analyzer for local structural analysis of graph neighborhoods:

- k-hop neighborhood extraction (BFS layers from any vertex)
- Growth profile — cumulative reachable set size at each depth
- Expansion rates — boundary/interior ratio per hop
- Local density — edge density of induced k-hop subgraph
- Neighborhood overlap — Jaccard and overlap coefficient between
  vertex pairs, measuring structural proximity
- Boundary vertices — frontier at exact distance k
- Aggregate statistics — mean/min/max sizes across all vertices
- Vertex ranking by neighborhood size (widest local reach)
- Text report with per-vertex and aggregate summaries

47 unit tests covering paths, cycles, stars, complete graphs,
disconnected components, boundary conditions, and invariant checks
(monotonicity, symmetry, density bounds, self-containment).

Usage: new GraphNeighborhoodAnalyzer(graph).getKHopNeighborhood(v, k)
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@sauravbhattacharya001
sauravbhattacharya001 merged commit 43e8e66 into master Mar 14, 2026
3 of 7 checks passed
@github-actions github-actions Bot added visualization Graph visualization and UI tests Test additions or fixes size/xl labels Mar 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size/xl tests Test additions or fixes visualization Graph visualization and UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant