22import static org.junit.jupiter.api.Assertions.assertEquals;
24import org.jgrapht.graph.DefaultUndirectedGraph;
25import org.junit.jupiter.api.Test;
27import denoptim.ga.PopulationTest;
28import denoptim.graph.DGraph;
29import denoptim.graph.Template;
30import denoptim.graph.simplified.Node;
31import denoptim.graph.simplified.NodeConnection;
56 DefaultUndirectedGraph<Node, NodeConnection> gkA =
58 assertEquals(5,gkA.vertexSet().size());
59 assertEquals(4,gkA.edgeSet().size());
61 DefaultUndirectedGraph<Node, NodeConnection> gkB =
63 assertEquals(4,gkB.vertexSet().size());
64 assertEquals(3,gkB.edgeSet().size());
66 DefaultUndirectedGraph<Node, NodeConnection> gkC =
68 assertEquals(8,gkC.vertexSet().size());
69 assertEquals(8,gkC.edgeSet().size());
71 DefaultUndirectedGraph<Node, NodeConnection> gkD =
73 assertEquals(8,gkD.vertexSet().size());
74 assertEquals(7,gkD.edgeSet().size());
static GAParameters prepare()
static DGraph[] getPairOfTestGraphsB()
Builds a pair of graphs that contain templates with ContractLevel#FREE contract.
Container for the list of vertices and the edges that connect them.
Vertex getVertexAtPosition(int pos)
Returns the vertex that is in the given position of the list of vertices belonging to this graph.