com.github.fanavarro.graphlib.Tree Maven / Gradle / Ivy
package com.github.fanavarro.graphlib;
import java.util.Set;
/**
* Class representing a tree, which a graph specialization containing a root and
* a set of leaves elements.
*
* @author fabad
* @param
* the node type
* @param
* the edge type
*/
public interface Tree extends Graph {
/**
* Get the root of the tree.
*
* @return the root
*/
public N getRoot();
/**
* Get the leaves of the tree.
*
* @return the leaves
*/
public Set getLeaves();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy