src/main/java/eu/digitisation/distance/EditTable.java
private EditSequence path(int row, int column) {
        EditSequence operations = new EditSequence(Math.max(row, column));
        int i = row;
        int j = column;

        while (i > 0 || j > 0) {
            EdOp e = get(i, j);
            switch (e) {
                case INSERT:
                    --j;
                    break;
                case DELETE:
                    --i;
                    break;
                default:
                    --i;
                    --j;
                    break;
            }
            operations.add(e);
        }
        return (i == 0 && j == 0) ? operations : null;
    }
/**
     * Build the sequence of edit operations in the path from a the cell at
     * (row, column) to the cell at (0,0)
     *
     * @param row the starting row
     * @param column the starting column
     * @return the sequence of edit operations stored in this table which lead
     * from the cell at (row, column) to the cell at (0,0)
     */
Build the sequence of edit operations in the path from a the cell at
(row, column) to the cell at (0,0)

@param row the starting row
@param column the starting column
@return the sequence of edit operations stored in this table which lead
from the cell at (row, column) to the cell at (0,0)
Build the sequence of edit operations in the path from a the cell at ( row column ) to the cell at ( 0 0 ) @param row the starting row @param column the starting column @return the sequence of edit operations stored in this table which lead from the cell at ( row column ) to the cell at ( 0 0 )
private EditSequence path(int row, int column) {
        EditSequence operations = new EditSequence(Math.max(row, column));
        int i = row;
        int j = column;
        while (i > 0 || j > 0) {
            EdOp e = get(i, j);
            switch (e) {
                case INSERT:
                    --j;
                    break;
                case DELETE:
                    --i;
                    break;
                default:
                    --i;
                    --j;
                    break;
            }
            operations.add(e);
        }
        return (i == 0 && j == 0) ? operations : null;
    }
private EditSequence path ( int row , int column ) { EditSequence operations = new EditSequence ( Math . max ( row , column ) ) ; int i = row ; int j = column ; while ( i > 0 || j > 0 ) { EdOp e = get ( i , j ) ; switch ( e ) { case INSERT : -- j ; break ; case DELETE : -- i ; break ; default : -- i ; -- j ; break ; } operations . add ( e ) ; } return ( i == 0 && j == 0 ) ? operations : null ; }
Build the sequence of edit operations in the path from a the cell at
 (row, column) to the cell at (0,0)
Build the sequence of edit operations in the path from a the cell at ( row column ) to the cell at ( 0 0 )