Remove all vertices other than the ones marked with to_keep. Edges are updated accordingly.
(self, to_keep)
| 174 | raise RuntimeError("Zero vertices left after trimming.") |
| 175 | |
| 176 | def filter_vertices(self, to_keep): |
| 177 | """ Remove all vertices other than the ones marked with to_keep. |
| 178 | Edges are updated accordingly. |
| 179 | """ |
| 180 | self.raw_wires.filter_vertices(to_keep) |
| 181 | self.__initialize_wires() |
| 182 | |
| 183 | def filter_edges(self, to_keep): |
| 184 | """ Remove all edges unless marked with to keep. |
no test coverage detected