pulsatrix
Loading...
Searching...
No Matches
pulsatrix::CircuitGraphView Class Reference

Draws a CircuitGraph as a node-link diagram: node position is topological depth (x-axis), node size and color encode ablation_effect via length/area AND Viridis (unsigned magnitude – never hue-for-magnitude, hc_information_visualization.md SS1), edge thickness encodes weight. Each node is captioned with CircuitNodeDisplayLabel (its own label, else op type + id) above and its ablation effect below. More...

#include <circuit_graph_view.hpp>

Static Public Member Functions

static void Draw (const char *title, const CircuitGraph &graph)
 

Detailed Description

Draws a CircuitGraph as a node-link diagram: node position is topological depth (x-axis), node size and color encode ablation_effect via length/area AND Viridis (unsigned magnitude – never hue-for-magnitude, hc_information_visualization.md SS1), edge thickness encodes weight. Each node is captioned with CircuitNodeDisplayLabel (its own label, else op type + id) above and its ablation effect below.

Note
v1 scope: every ComputationGraph this codebase builds today is a single-parent linear chain (see circuit_graph.hpp's own note on CircuitEdge::weight), so a single horizontal row of nodes is a faithful layout. A general DAG force-layout is deferred until a genuinely branching architecture exists to visualize.
Deliberately not unit-tested – see AttributionBarChart's note.

Member Function Documentation

◆ Draw()

static void pulsatrix::CircuitGraphView::Draw ( const char *  title,
const CircuitGraph &  graph 
)
static

The documentation for this class was generated from the following file: