add comment

This commit is contained in:
Folkert 2022-04-22 19:35:01 +02:00
parent fdd0910ba0
commit 285e4f05ec
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -127,8 +127,9 @@ impl ReferenceMatrix {
TopologicalSort::Groups { groups }
}
pub fn strongly_connected_components(&self, group: &[u32]) -> Vec<Vec<u32>> {
let mut params = Params::new(self.length, group);
/// Get the strongly-connected components of the set of input nodes.
pub fn strongly_connected_components(&self, nodes: &[u32]) -> Vec<Vec<u32>> {
let mut params = Params::new(self.length, nodes);
'outer: loop {
for (node, value) in params.preorders.iter().enumerate() {