If only 1 edge is required
if ( ( adj [ i ] [ j ] and adj [ j ] [ k ] ) or ( adj [ j ] [ k ] and adj [ k ] [ i ] ) or ( adj [ k ] [ i ] and adj [ i ] [ j ] ) ) : NEW_LINE INDENT edgesNeeded = 1 ; NEW_LINE DEDENT