public void EmptyGraph()
        {
            IVertexListGraph          g      = GraphFactory.EmptyParallelEdgesAllowed();
            StrongComponentsAlgorithm strong = new StrongComponentsAlgorithm(g);

            Assert.AreEqual(0, strong.Compute());

            checkStrong(strong);
        }
Example #2
0
        public void ConstructorWithNullSource()
        {
            Vertex v = new Vertex();

            new GraphBalancerAlgorithm(GraphFactory.EmptyParallelEdgesAllowed(), null, v);
        }