mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Didn't mean to commit that.
This commit is contained in:
parent
41bc77221d
commit
7b396214fc
1 changed files with 0 additions and 1 deletions
|
@ -68,7 +68,6 @@ class DynamicGraph<T> {
|
||||||
|
|
||||||
fun <T> transitiveClosureGraph(root: T, childrenFor: (T) -> List<T>, seen: HashSet<T> = hashSetOf()) : Node<T> {
|
fun <T> transitiveClosureGraph(root: T, childrenFor: (T) -> List<T>, seen: HashSet<T> = hashSetOf()) : Node<T> {
|
||||||
val children = arrayListOf<Node<T>>()
|
val children = arrayListOf<Node<T>>()
|
||||||
println("TRANSITIVE CLOSURE FOR " + root)
|
|
||||||
childrenFor(root).forEach { child ->
|
childrenFor(root).forEach { child ->
|
||||||
if (! seen.contains(child)) {
|
if (! seen.contains(child)) {
|
||||||
seen.add(child)
|
seen.add(child)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue