Test Case Identifier
addEdge
Test Items
The purpose of this test is to check if edge is added correctly to the singlegraph.
Methods to be used: addNode(), getNode(), isDirected and addEdge().
Input Specification
Test Case Specification:
Add an object of SingleGraph class, two nodes and an edge between the nodes.
Output Specification
Asset that the number of edges equals 1. Assert that the method getNode() gives the correct object (node) passing
the id of the node. Assert that the edge is not a directed edge. Assert that the left and right node of an edge equal
to source and target.