public boolean add ( int left , int right ) { if ( line [ left ] == null ) { line [ left ] = new IntBitSet ( ) ; } else { if ( line [ left ] . contains ( right ) ) { return false ; } } line [ left ] . add ( right ) ; return true ; }
Adds a new pair to the relation .