public void EmptyGraph() { IVertexListGraph g = GraphFactory.EmptyParallelEdgesAllowed(); StrongComponentsAlgorithm strong = new StrongComponentsAlgorithm(g); Assert.AreEqual(0, strong.Compute()); checkStrong(strong); }
public void ConstructorWithNullSource() { Vertex v = new Vertex(); new GraphBalancerAlgorithm(GraphFactory.EmptyParallelEdgesAllowed(), null, v); }