(
name: string,
type,
graphOptions: LabeledGraphOptions = {}
)
| 1279 | * Create a new graphlib.Graph() instance with default parameters |
| 1280 | */ |
| 1281 | export function createGraph<N, E>( |
| 1282 | name: string, |
| 1283 | type, |
| 1284 | graphOptions: LabeledGraphOptions = {} |
| 1285 | ): graphlib.Graph { |
| 1286 | const graph = new graphlib.Graph(graphOptions); |
| 1287 | graph.setGraph({ |
| 1288 | name: name, |
| 1289 | rankdir: graphOptions.rankdir || 'BT', |
| 1290 | type: type, |
| 1291 | } as any); |
| 1292 | return graph; |
| 1293 | } |
| 1294 | /** |
| 1295 | * Create a predicate for checking whether a node should be embedded based on |
| 1296 | * the specified types. |
no outgoing calls
no test coverage detected
searching dependent graphs…