This repository was archived by the owner on Jun 18, 2026. It is now read-only.
feat: Interactive Graph Explorer — load and explore JSON graphs in the browser - #82
Merged
Merged
Conversation
…e browser
New docs/explorer.html page for visual exploration of exported graphs:
Features:
- Load JSON files from JsonGraphExporter or try built-in demo graph
- Force-directed layout with SVG rendering (no D3.js dependency)
- Zoom (scroll wheel) and pan (click-drag) on the canvas
- Degree-proportional node sizing
- Edge coloring by relationship type (friend, classmate, social, etc.)
- Click any node to highlight its ego network (direct neighbors)
- Node info panel showing degree, community, and neighbor list
- Click-through neighbor navigation
- Search/filter nodes by name with live highlighting
- Shortest path finder (BFS) between any two nodes with path viz
- Fuzzy node name matching (case-insensitive, substring)
- Connected component community detection with color coding
- Adjustable force strength and link distance sliders
- Show/hide labels toggle
- Community coloring toggle
- PNG export of current view (2x resolution)
- Live statistics: nodes, edges, density, avg/max degree, communities
- Edge type legend with counts
- Responsive layout (stacks vertically on mobile)
- Dark theme matching existing docs site
Architecture:
- Zero external dependencies (pure SVG + vanilla JS)
- Custom force simulation (repulsion + link spring + center gravity)
- Accepts standard { nodes: [], links: [] } JSON format
Explorer link added to sidebar nav on all 6 doc pages.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Interactive Graph Explorer page: load JSON graph files and explore them visually. Force-directed layout, ego network highlighting, shortest path finder, search/filter, community detection, degree sizing, edge type coloring, zoom/pan, PNG export. Zero dependencies (pure SVG + vanilla JS). Explorer link added to all doc pages.