@Test
public void testAddEdgeALot() {
MatrixGraph graph = new MatrixGraph(17);
ThreadLocalRandom random = ThreadLocalRandom.current();
IntStream.range(0, 1000).forEach(index -> {
int i = random.nextInt(17);
int j = random.nextInt(17);
int value = random.nextInt(10_000) - 5_000;
graph.addEdge(i, j, value);
assertTrue(graph.hasEdge(i, j));
assertEquals(value, graph.getWeight(i, j));