Test Case Identifier
TC-P_C02
Test Items
The purpose of the test is to check if the method for setting an added node as a root functions properly.
Methods to be used:addNode(), setRoot(), getRoot().
Input Specification
Test Case Specification:
Add an object of Single Graph class and an object of Path class named path. Add node to the graph
and set it as a root to the path using the setRoot() method.
Output Specification
Assert that the node is returned when getting the root of the path.