Did I find the right examples for you? yes no

# cogent.struct.knots.nussinov_fill

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

```from cogent.util.dict2d import Dict2D
from cogent.struct.rna2d import Pairs
from cogent.struct.knots import PairedRegion, PairedRegionFromPairs,\
PairedRegions, PairedRegionsFromPairs, ConflictMatrix,\
opt_all, contains_true, empty_matrix,\
```
```                [0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0]]
obs = nussinov_fill(p,size=10)
self.assertEqual(obs, exp)

def test_nussinov_traceback(self):
"""nussinov_traceback: basic test"""
p = Pairs([(0,7),(1,6),(2,5),(3,9),(4,8)])
m = nussinov_fill(p,size=10)
```

```from cogent.util.dict2d import Dict2D
from cogent.struct.rna2d import Pairs
from cogent.struct.knots import PairedRegion, PairedRegionFromPairs,\
PairedRegions, PairedRegionsFromPairs, ConflictMatrix,\
opt_all, contains_true, empty_matrix,\
```
```                [0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0]]
obs = nussinov_fill(p,size=10)
self.assertEqual(obs, exp)

def test_nussinov_traceback(self):
"""nussinov_traceback: basic test"""
p = Pairs([(0,7),(1,6),(2,5),(3,9),(4,8)])
m = nussinov_fill(p,size=10)
```