List < SquareNode > firstRow2 ( SquareNode seed ) { int indexLower = lowerEdgeIndex ( seed ) ; int indexUpper = addOffset ( indexLower , 1 , seed . square . size ( ) ) ; List < SquareNode > listDown = new ArrayList <> ( ) ; List < SquareNode > list = new ArrayList <> ( ) ; if ( ! addToRow ( seed , indexUpper , 1 , true , listDown ) ) return null ; flipAdd ( listDown , list ) ; list . add ( seed ) ; seed . graph = 0 ; if ( ! addToRow ( seed , indexLower , - 1 , true , list ) ) return null ; return list ; }
Adds the first row to the list of rows when the seed element has two edges