Did I find the right examples for you? yes no

# cogent.struct.knots.matrix_solutions

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,\
```
```        pr4 = PairedRegion(84, 96, 3, Id=4)
prs = PairedRegions([pr0, pr1, pr2, pr3, pr4])
obs = matrix_solutions(prs)
self.assertEqual(obs, [PairedRegions([pr0,pr3,pr4])])

```
```        pr = PairedRegion(2,20, 5, Id='A')
prs = PairedRegions([pr])
obs = matrix_solutions(prs)
self.assertEqual(obs, [prs])

```

```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,\
```
```        pr4 = PairedRegion(84, 96, 3, Id=4)
prs = PairedRegions([pr0, pr1, pr2, pr3, pr4])
obs = matrix_solutions(prs)
self.assertEqual(obs, [PairedRegions([pr0,pr3,pr4])])

```
```        pr = PairedRegion(2,20, 5, Id='A')
prs = PairedRegions([pr])
obs = matrix_solutions(prs)
self.assertEqual(obs, [prs])

```