This react app simulates a graph cellular automata network, meant to resemble cardiac myocytes.
- Clone the repo to your local machine.
- Run
npm run start
in the command line to start the app.
Wherever you click in the main box, a new graph node will appear. You can press the 'Generate Nodes' button to randomly generate 100 nodes, each connected to a few of it's neighbours.
When in delete mode, click a node to delete it.
When in connect mode, click a node, then another node to connect them together.
When in signal mode, click a node to send out a signal.
Within the graph component (/src/Components/Graph/index.tsx
), you can modify:
- The probability that a signal propagates. Default = 1
- The refractory period. Default = 400ms.