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

com.github.fanavarro.graphlib.Tree Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
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