boolean selectInitialTriplet ( View seed , GrowQueue_I32 motions , int selected [ ] ) { double bestScore = 0 ; for ( int i = 0 ; i < motions . size ; i ++ ) { View viewB = seed . connections . get ( i ) . other ( seed ) ; for ( int j = i + 1 ; j < motions . size ; j ++ ) { View viewC = seed . connections . get ( j ) . other ( seed ) ; double s = scoreTripleView ( seed , viewB , viewC ) ; if ( s > bestScore ) { bestScore = s ; selected [ 0 ] = i ; selected [ 1 ] = j ; } } } return bestScore != 0 ; }
Exhaustively look at all triplets that connect with the seed view