@aux4/graph-cycle-detector

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i @aux4/graph-cycle-detector

Weekly Downloads

0

Version

1.0.3

License

Apache-2.0

Unpacked Size

4.22 kB

Total Files

3

Last publish

Collaborators

  • aux4-dev