mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11: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 }
|
TopologicalSort::Groups { groups }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn strongly_connected_components(&self, group: &[u32]) -> Vec<Vec<u32>> {
|
/// Get the strongly-connected components of the set of input nodes.
|
||||||
let mut params = Params::new(self.length, group);
|
pub fn strongly_connected_components(&self, nodes: &[u32]) -> Vec<Vec<u32>> {
|
||||||
|
let mut params = Params::new(self.length, nodes);
|
||||||
|
|
||||||
'outer: loop {
|
'outer: loop {
|
||||||
for (node, value) in params.preorders.iter().enumerate() {
|
for (node, value) in params.preorders.iter().enumerate() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue