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

cdc.graphs.impl.BasicTree Maven / Gradle / Ivy

There is a newer version: 0.71.2
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy