MCPcopy Create free account
hub / github.com/microsoft/SandDance / computeHeight

Function computeHeight

docs/app/js/sanddance-app.js:137586–137590  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

137584 node.data = node.data.data;
137585}
137586function computeHeight(node) {
137587 var height = 0;
137588 do node.height = height;
137589 while ((node = node.parent) && node.height < ++height);
137590}
137591function Node(data) {
137592 this.data = data;
137593 this.depth = this.height = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected