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

info.scce.addlib.traverser.PreorderTraverser 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 PreorderTraverser> implements Iterable {

    private final List roots;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy