Ejemplo n.º 1
0
        public void Compute <TVertex, TEdge>([PexAssumeNotNull] IUndirectedGraph <TVertex, TEdge> g)
            where TEdge : IEdge <TVertex>
        {
            var topo =
                new UndirectedFirstTopologicalSortAlgorithm <TVertex, TEdge>(g);

            topo.AllowCyclicGraph = true;
            topo.Compute();
        }
Ejemplo n.º 2
0
        private void Compute <TVertex, TEdge>(IUndirectedGraph <TVertex, TEdge> g)
            where TEdge : IEdge <TVertex>
        {
            var topo =
                new UndirectedFirstTopologicalSortAlgorithm <TVertex, TEdge>(g);

            topo.AllowCyclicGraph = true;
            topo.Compute();
        }
Ejemplo n.º 3
0
        public void Compute([PexAssumeNotNull] IUndirectedGraph <string, Edge <string> > g)
        {
            var topo =
                new UndirectedFirstTopologicalSortAlgorithm <string, Edge <string> >(g);

            topo.AllowCyclicGraph = true;
            topo.Compute();

            Display(topo);
        }