MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / createGraph

Function createGraph

tensorboard/plugins/graph/tf_graph_common/graph.ts:1281–1293  ·  view source on GitHub ↗
(
  name: string,
  type,
  graphOptions: LabeledGraphOptions = {}
)

Source from the content-addressed store, hash-verified

1279 * Create a new graphlib.Graph() instance with default parameters
1280 */
1281export 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.

Callers 4

constructorMethod · 0.90
getBridgegraphMethod · 0.90
constructorMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…