}                                                                                   //R# will say you do not need this. AppVeyor wants it.

        protected override void InternalCompute()
        {
            // Clone the visited graph
            TransitiveReduction.AddVerticesAndEdgeRange(VisitedGraph.Edges);

            var algo = new TransitiveAlgorithmHelper <TVertex, TEdge>(TransitiveReduction);

            algo.InternalCompute((g, u, v, e) =>
            {
                if (e != null)
                {
                    g.RemoveEdge(e);
                }
            });
        }
Exemplo n.º 2
0
        protected override void InternalCompute()
        {
            // Clone the visited graph
            TransitiveClosure.AddVerticesAndEdgeRange(VisitedGraph.Edges);

            var algo = new TransitiveAlgorithmHelper <TVertex, TEdge>(TransitiveClosure);

            algo.InternalCompute((g, u, v, e) =>
            {
                if (e == null)
                {
                    g.AddEdge(_createEdge(u, v));
                }
            });
        }