Static vector image of your knowledge graph, perfect for documentation and presentations.
graphify run ./my-project --format svg
# Generates graph.svg with static visualizationThe SVG format generates graph.svg containing:
- Force-directed layout — Spatially organized graph with physics-based positioning
- Community colors — Nodes colored by cluster
- Node labels — Text labels for easy reading
- Edge lines — Connections between nodes with relationship type indicators
- Legend — Reference for node types and community colors
- Vector format — Infinitely scalable, no quality loss when resized
- Community coloring — Each community has a distinct color for easy visual separation
- Node sizing — Node size proportional to degree (more connections = larger)
- Edge weights — Thicker edges represent stronger relationships (more calls, closer coupling)
- Relationship labels — Edge labels indicate type (calls, extends, imports, semantic, etc.)
- Legend panel — Color key and type reference in corner

## Architecture Overview
This is our system graph showing modules (blue), services (green), and utilities (yellow).<img src="docs/graph.svg" alt="Project Graph" width="800">Attach graph.svg to code review PRs to show how your changes affect the dependency graph:
graphify run ./src --format svg
git add graph.svg
git commit -m "docs: add dependency graph"
git push -u origin feature-branchSVG exports perfectly to PDF and paper. Zoom before printing:
# Print to PDF in Firefox
File > Print > Save as PDF
# Or use a tool like wkhtmltopdf
wkhtmltopdf graph.svg graph.pdfOpen SVG in Inkscape, Adobe Illustrator, or Figma for further customization:
- Adjust colors or layout
- Add annotations
- Combine with other diagrams
- Create presentations
# Convert to PNG (requires ImageMagick)
convert graph.svg graph.png
# Convert to PDF (requires Inkscape or similar)
inkscape graph.svg --export-pdf=graph.pdf
# Convert to high-res PNG
convert -density 300 graph.svg graph.png- Documentation — Architecture diagrams in README files
- Presentations — Clean, professional visuals for talks and demos
- Design reviews — Share dependency structure with architects
- Offline viewing — No internet or software required
- Publications — Embed in papers, blogs, or reports
- Historical records — Git-friendly format for version control
- Run
graphify run ./src --format svg - Add to your README or docs folder
- Add caption: "Detected architectural clusters in project"
- Commit and push
- Team members see dependency structure immediately when viewing repo
- Generate SVG after each major milestone
- Store versions in git (SVG diffs show structural changes)
- Create a "graph evolution" gallery in your wiki
- Track how architecture changes with refactoring
- Export SVG of key subsystem
- Add in presentation/whitepaper
- Use color coding and sizing to tell the story without technical details
The SVG generator respects these settings:
- Layout algorithm — Force-directed (physics-based positioning)
- Colors — Community assignment determines node colors
- Size — Responsive to canvas dimensions
- Scale — Automatically fits content to viewBox
SVG files are typically 50 KB – 5 MB depending on node count:
- 100 nodes → ~50 KB
- 1000 nodes → ~500 KB
- 5000 nodes → ~5 MB
For very large graphs, consider exporting only a subset or using the HTML viewer for interactive exploration.
- Static — No interactivity (use HTML viewer instead)
- Large graphs — Rendering can be slow for 5000+ nodes in some viewers
- Real-time updates — Not suitable for live dashboards (regenerate on each run)
- Worked Example — Real output from a C# project walkthrough
- Export Formats Overview
- HTML Interactive Viewer — Interactive version of the same visualization
- JSON Graph Export — Raw data for custom visualizations