private Entry setParent ( Entry entry , Entry parent ) { unlinkFromNeighbors ( entry ) ; entry . oParent = parent ; parent . oFirstChild = mergeLists ( entry , parent . oFirstChild ) ; parent . degree ++ ; entry . isMarked = false ; return parent ; }
Attaches entry as a child of parent . Returns parent .