assertTrue(length.compareTo(BigDecimal.valueOf(2)) == 0);
}
@Test
public void testGetTriangleWithWeights() {
Edge firstEdge = objectsProvider.getEdge(1, 1, 2, 3);
Edge secondEdge = objectsProvider.getEdge(1, 1, 3, 1);
Edge thirdEdge = objectsProvider.getEdge(2, 3, 3, 1);
WeightedEdge addedEdge = new WeightedEdge(thirdEdge, SteinersAlgorithm.getEdgeLength(thirdEdge));
Graph<WeightedEdge> triangle;
try {
triangle = SteinersAlgorithm.getTriangleWithWeights(firstEdge, secondEdge);