Test Case Identifier
TC-SG_C10
Test Items
The purpose of the test is to check that a node which is not connected to any edge will have a degree of 0. Methods to be used: addNode (), addEdge(), getDegree().
Input Specification
Test Case Specification: Add an object of Single Graph class, three nodes, and an edge between the first two nodes. The third node should not be used neither as a source nor as a target node for any edge.
Output Specification
Assert that 0 is returned when calling the getDegree() method on the nonconnected node.