A simple simulation widget for a two-compartment pharmacokinetic (PK) model, exploring graph-theoretic representations of the system.

We can represent the PK model as a weigthed directed graph,
The graph laplacian can be computed as the difference of the degree matrix and the adjacency matrix
This matrix represents the flow through the system (out of each node). We can use this matrix to write the system of differential equations that describe the PK concentrations
Exploring manim for visualizations.
