@aux4/graph-cycle-detector
v1.0.3
Published
Graph Cycle Detector
Downloads
5
Maintainers
Readme
graph-cycle-detector
A simple graph cycle detector.
Install
npm install --global @aux4/graph-cycle-detector
Usage
Simple Graph
graph.txt
A -> B
B -> C
C -> D
D -> E
D -> A
E -> F
$ cat graph.txt | graph-cycle-detector
stateDiagram-v2
C --> D
D --> A
B --> C
A --> B
It will automatically open Mermaid Live Editor in your default browser.
Without Open Mermaid Live Editor
$ cat graph.txt | graph-cycle-detector --no-open
Terraform
$ terraform graph | graph-cycle-detector --terraform