Package es.uam.eps.ir.relison.graph.tree
Class UnweightedTreeTest
java.lang.Object
es.uam.eps.ir.relison.graph.tree.UnweightedTreeTest
public class UnweightedTreeTest
extends java.lang.Object
Class that tests the fast unweighted implementation of trees.
-
Constructor Summary
Constructors Constructor Description UnweightedTreeTest()Constructor. -
Method Summary
Modifier and Type Method Description voidcheckLeaves()Tests the method for identifying if a root is a leaf or not.voidchildrenAddition()Tests the addition of children to the graph.voiddescendanceCheck()Test the functions that check if a node descends or ascends from other node.voidlevels()Test the functions for obtaining the different levels of a graph.voidobtainLeaves()Tests the methods for obtaining the leaves of the tree.voidobtainParentsAndChildren()Tests the functions for obtaining parents and children of nodes.voidparentalCheck()Tests the functions that check if a node is parent or child of other node.voidrootTest()Tests the addition of the root to the graph.voidsetUp()static voidsetUpClass()voidtearDown()static voidtearDownClass()
-
Constructor Details
-
UnweightedTreeTest
public UnweightedTreeTest()Constructor.
-
-
Method Details
-
setUpClass
public static void setUpClass() -
tearDownClass
public static void tearDownClass() -
setUp
public void setUp() -
tearDown
public void tearDown() -
rootTest
public void rootTest()Tests the addition of the root to the graph. -
childrenAddition
public void childrenAddition()Tests the addition of children to the graph. -
parentalCheck
public void parentalCheck()Tests the functions that check if a node is parent or child of other node. -
descendanceCheck
public void descendanceCheck()Test the functions that check if a node descends or ascends from other node. -
obtainParentsAndChildren
public void obtainParentsAndChildren()Tests the functions for obtaining parents and children of nodes. -
levels
public void levels()Test the functions for obtaining the different levels of a graph. -
checkLeaves
public void checkLeaves()Tests the method for identifying if a root is a leaf or not. -
obtainLeaves
public void obtainLeaves()Tests the methods for obtaining the leaves of the tree.
-