cdc.graphs.impl.BasicTree Maven / Gradle / Ivy
package cdc.graphs.impl;
import cdc.graphs.TreeAdapter;
public class BasicTree> implements TreeAdapter {
public BasicTree() {
super();
}
@Override
public N getParent(N node) {
return node.getParent();
}
@Override
public Iterable getChildren(N node) {
return node.getChildren();
}
@Override
public boolean hasChildren(N node) {
return !node.getChildren().isEmpty();
}
}