MCPcopy Index your code
hub / github.com/Lol3rrr/termgraph

github.com/Lol3rrr/termgraph @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
120 symbols 268 edges 19 files 41 documented · 34% updated 2y ago★ 328 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Termgraph

Docs Crates.io

A utility to display Directed-Graphs in the Terminal, purely written in rust without external dependencies

Motivation

This crate was born to allow for easy visualization of Graphs in the Terminal, either for debugging purposes or for displaying it to the end user. This was started as I could not find anothe crate that really suited my use-case and this might also be useful for others when working with graphs in Rust, which can already be hard enough.

Usage

To see how you can use this, see the Documentation or the examples in the /examples/ folder.

Example

Example Graph

Extension points exported contracts — how you extend this code

NodeFormat (Interface)
Specifies how the Nodes of the Graph should be formatted [3 implementers]
src/formatter.rs

Core symbols most depended-on inside this repo

set
called by 21
src/grid/grid_structure.rs
add_nodes
called by 19
src/graph.rs
display
called by 19
src/lib.rs
add_edges
called by 18
src/graph.rs
finish
called by 11
src/config.rs
default_colors
called by 9
src/config.rs
is_empty
called by 9
src/graph.rs
clone
called by 9
src/grid.rs

Shape

Method 61
Function 34
Class 18
Enum 6
Interface 1

Languages

Rust100%

Modules by API surface

src/grid.rs21 symbols
src/config.rs21 symbols
src/grid/grid_structure.rs14 symbols
src/acyclic.rs14 symbols
src/graph.rs10 symbols
src/graph/feedback_arc_set.rs7 symbols
src/grid/entry.rs6 symbols
src/formatter.rs6 symbols
src/levels.rs5 symbols
src/graph/tarjan.rs3 symbols
examples/custom-formatting.rs3 symbols
tests/small.rs2 symbols

For agents

$ claude mcp add termgraph \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page