# View circuit path with labels

**URL:** https://discourse.kitware.com/t/view-circuit-path-with-labels/1014
**Category:** Pulse Physiology Engine
**Created:** [April 4, 2023, 11:08am UTC](https://discourse.kitware.com/t/view-circuit-path-with-labels/1014 "2023-04-04T11:08:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kurt\_Sansom](https://discourse.kitware.com/user_avatar/discourse.kitware.com/kurt_sansom/32/633_2.png) [@Kurt\_Sansom](https://discourse.kitware.com/u/Kurt_Sansom)
#### Post date: [April 4, 2023, 11:08am UTC](https://discourse.kitware.com/t/view-circuit-path-with-labels/1014/1 "2023-04-04T11:08:16Z")

</div>

Reading through `CardiovascularModel.cpp` I can see in the setup where the circuit is setup `CardiovascularModel::SetUp()` . Is it possible to export the circuit graph to be viewable e.g. something like graphviz? One graph for the systemic circuit and another for compartment circuits.

Also is it possible to generate the code for a circuit given an input graph? e.g. create the skeleton code for a new circuit or compartment.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [April 4, 2023, 12:36pm UTC](https://discourse.kitware.com/t/view-circuit-path-with-labels/1014/2 "2023-04-04T12:36:44Z")

</div>

Hi @Kurt_Sansom

Our data model is pretty functional and expressed in a proto file here. It should be pretty straight forward to write an i/o class to write data out. Reading data in would require a little more work to ensure all the he names used to interact with the circuit programmatically get properly mapped

[https://gitlab.kitware.com/physiology/engine/-/blob/stable/src/schema/pulse/cdm/bind/Circuit.proto](https://gitlab.kitware.com/physiology/engine/-/blob/stable/src/schema/pulse/cdm/bind/Circuit.proto)

---

<div class="post-metadata">

### Author: ![coolwebb](https://discourse.kitware.com/user_avatar/discourse.kitware.com/coolwebb/32/25_2.png) [@coolwebb](https://discourse.kitware.com/u/coolwebb)
#### Post date: [April 4, 2023, 1:11pm UTC](https://discourse.kitware.com/t/view-circuit-path-with-labels/1014/3 "2023-04-04T13:11:14Z")

</div>

While we don’t currently have any automated process to input/output circuit networks to be viewable, we include a hand-created TinyCAD file [here](https://gitlab.kitware.com/physiology/engine/-/blob/stable/docs/Figures/CircuitDiagrams/CardiovascularCircuit_TinyCad.dsn) that is used for creating the circuit diagram in the [methodology documentation](https://pulse.kitware.com/_cardiovascular_methodology.html#cardiovascular-features).
