{ 49, 52 }, { 51, 53 }, { 52, 54 }, { 53, 55 }, { 54, 56 },
{ 55, 57 }, { 56, 58 }, { 57 }, { 49 }, { 49, 61 }, { 60, 62 },
{ 61, 63 }, { 62, 64 }, { 63, 65 }, { 64 }, { 49 }, { 42 },
{ 8 } };
RNASpecificTree tree = new RNASpecificTree();
tree.buildFromViennaFormat(
"aaaaaaAAAgggggggAAaaaaaAAAuuuuuAAuuuuAAAaaAaaAAccccAcccAAAAAAgggAAAgggggAAccccccAAAggggggAAaaaaAAAAAuuuuAAcccccAAAcccAAAAuuuuuu"
.toCharArray(),
"((((((...(((((((..(((((...)))))..((((...)).))..)))).)))......(((...(((((..((((((...))))))..((((.....))))..)))))...)))....))))))"
.toCharArray());
int[][] ans = tree.getEdges();
Assert.assertEquals("The structure is not the same as expected", true,
MatrixUtils.equals(ans, correct));
}