All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.scce.addlib.traverser.PreorderTreeTraverser Maven / Gradle / Ivy

Go to download

The Java Library for Algebraic Decision Diagrams, Code Generation, and Layouting

There is a newer version: 3.1.0
Show newest version
package info.scce.addlib.traverser;

import info.scce.addlib.dd.DD;

import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class PreorderTreeTraverser> implements Iterable {

    private final List roots;

    public PreorderTreeTraverser(D root) {
        this(Collections.singletonList(root));
    }

    public PreorderTreeTraverser(List roots) {
        this.roots = roots;
    }

    @Override
    public Iterator iterator() {
        return new PreorderTreeIterator<>(roots);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy