mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
add comment
This commit is contained in:
parent
fdd0910ba0
commit
285e4f05ec
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue