Skip to main content
ts-graphviz
Guides
Playground
API Reference
Blog
English
English
日本語
中文(中国)
GitHub
Search
Run
Ctrl
/
⌘
+
Enter
import { digraph, attribute as _ } from 'ts-graphviz'; digraph('state_machine', { [_.newrank]: true }, (g) => { g.node({ shape: 'circle' }); g.edge(['Model', 'DOT'], { [_.label]: 'toDot', [_.constraint]: false }); g.edge(['AST', 'DOT'], { [_.label]: 'stringify' }); g.edge(['DOT', 'AST'], { [_.label]: 'parse' }); g.edge(['Model', 'AST'], { [_.label]: 'fromModel' }); g.edge(['AST', 'Model'], { [_.label]: 'toModel' }); g.edge(['DOT', 'Model'], { [_.label]: 'fromDot', [_.constraint]: false }); });
Running…