add comment

This commit is contained in:
Folkert 2022-04-22 19:29:52 +02:00
parent 28cb9bf36e
commit 18ba49c694
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -104,6 +104,8 @@ impl ReferenceMatrix {
} }
} }
// NOTE: we use -1 to mark nodes that have no predecessors, but are already
// part of an earlier group. That ensures nodes are added to just 1 group
let count = preds_map[succ]; let count = preds_map[succ];
preds_map[succ] = -1; preds_map[succ] = -1;