GraphStream

This commit is contained in:
2020-05-06 20:24:37 +02:00
parent acf8004497
commit 8d6d91e562
21 changed files with 357 additions and 81 deletions

View File

@ -0,0 +1,9 @@
export type GraphLayouts =
'neato'
| 'dot'
| 'circo'
| 'fdp'
| 'sfdp'
| 'osage'
| 'twopi'
| 'patchwork'

View File

@ -0,0 +1,11 @@
/* eslint-disable line-comment-position */
/* eslint-disable no-inline-comments */
export type GraphStreamCommand =
'cn'| // create node
'en'| // end node
'cug'| // create unordered graph
'cdg'| // create directional graph
'csg'| // create subgraph
'eg'| // end graph
'at'| // add attributes
'ce' // create edge

32
lib/enums/Styles.ts Normal file
View File

@ -0,0 +1,32 @@
type EdgeStyles =
''
|'solid'
|'dashed'
|'dotted'
|'bold'
type NodeStyles =
''
|'solid'
|'dashed'
|'dotted'
|'bold'
|'rounded'
|'diagonals'
|'filled'
|'striped'
|'wedged'
|'invis'
type GraphStyles =
'solid'
| 'dashed'
| 'dotted'
| 'bold'
| 'rounded'
| 'filled'
| 'striped'
export { EdgeStyles, NodeStyles, GraphStyles };