(&self)
| 235 | } |
| 236 | |
| 237 | pub fn elements(&self) -> impl Iterator<Item = NodeIndex> + '_ { |
| 238 | self.0 |
| 239 | .iter() |
| 240 | .enumerate() |
| 241 | .filter_map(|(i, b)| if b { Some(i.into()) } else { None }) |
| 242 | } |
| 243 | |
| 244 | pub fn complement(&self) -> NodeSubset { |
| 245 | let mut result = self.0.clone(); |
no test coverage detected