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

Method link

JSAT/src/jsat/utils/FibHeap.java:155–165  ·  view source on GitHub ↗
(FibNode<T> y, FibNode<T> x)

Source from the content-addressed store, hash-verified

153 }
154
155 private void link(FibNode<T> y, FibNode<T> x)
156 {
157 //1| remove y from the root list of H
158 delink(y);
159 //2| make y a child of x, incrementing x.degree
160 x.addChild(y);
161 x.degree++;//adding y as a child
162 x.degree += y.degree;//and all of y's children
163 //3| y.mark = FALSE
164 y.mark = false;
165 }
166
167 public double getMinKey()
168 {

Callers 1

consolidateMethod · 0.95

Calls 2

delinkMethod · 0.95
addChildMethod · 0.45

Tested by

no test coverage detected