Test Case Identifier
TC-MG_C01
Test Items
The purpose of this test is to check if the edges are added correctly to the multigraph. Methods to be used: addNode(), getNode(), isDirected(), addEdge(), getEdgeCount(), getSourceNode(), getTargetNode()
Input Specification
Test Case Specification:
Add object of MultiGraph class, three nodes and two edges between the three nodes.
Output Specification
Asset that the number of edges equals 2. 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.