MCPcopy Create free account
hub / github.com/algorithm-visualizer/algorithm-visualizer / init

Method init

src/core/tracers/GraphTracer.js:10–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 }
9
10 init() {
11 super.init();
12 this.dimensions = {
13 baseWidth: 320,
14 baseHeight: 320,
15 padding: 32,
16 nodeRadius: 12,
17 arrowGap: 4,
18 nodeWeightGap: 4,
19 edgeWeightGap: 4,
20 };
21 this.isDirected = true;
22 this.isWeighted = false;
23 this.callLayout = { method: this.layoutCircle, args: [] };
24 this.logTracer = null;
25 }
26
27 set(array2d = []) {
28 this.nodes = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected