MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / addChild

Method addChild

JSAT/src/jsat/utils/FibHeap.java:334–341  ·  view source on GitHub ↗

Adds the given node directly to the children list of this node. THe #p value for x will be set automatically. The #degree of this node will not be adjusted, and must be incremented correctly by the caller @param x the node to add as a child of this node. Should be a sing

(FibNode<T> x)

Source from the content-addressed store, hash-verified

332 * singular item
333 */
334 public void addChild(FibNode<T> x)
335 {
336 if(this.child == null)
337 this.child = x;
338 else
339 this.child = merge(this.child, x);
340 x.p = this;
341 }
342
343 @Override
344 public String toString()

Callers 1

linkMethod · 0.45

Calls 1

mergeMethod · 0.45

Tested by

no test coverage detected