Test Case Identifier
TC-P_C03
Test Items
The purpose of the test is to check that the first added node will be automatically set as a root if the user does not set it explicitly using the setRoot method. Methods to be used: addNode(), addEdge(), add(), getRoot().
Input Specification
Test Case Specification: Add an object of Single Graph class and an object of Path class. Add two nodes to the graph and an edge that uses the first node as a source node and the second node as a target node. Add the created nodes and the edge to the path.
Output Specification
Assert that the first node will be returned when getting the root of the path.