예제 #1
0
        public AdjacencyGraph <TVertex, SEquatableEdge <TVertex> > ToAdjacencyGraph04 <TVertex>(IEnumerable <SEquatableEdge <TVertex> > vertexPairs)
        {
            // TODO: add assertions to method GraphExtensionsTest.ToAdjacencyGraph04(IEnumerable`1<SEquatableEdge`1<!!0>>)
            AdjacencyGraph <TVertex, SEquatableEdge <TVertex> > result
                = GraphExtensions.ToAdjacencyGraph <TVertex>(vertexPairs);

            return(result);
        }
예제 #2
0
        public AdjacencyGraph <TVertex, TEdge> ToAdjacencyGraph01 <TVertex, TEdge>(IEnumerable <TEdge> edges)
            where TEdge : IEdge <TVertex>
        {
            // TODO: add assertions to method GraphExtensionsTest.ToAdjacencyGraph01(IEnumerable`1<!!1>)
            AdjacencyGraph <TVertex, TEdge> result
                = GraphExtensions.ToAdjacencyGraph <TVertex, TEdge>(edges);

            return(result);
        }
예제 #3
0
        public AdjacencyGraph <TVertex, TEdge> ToAdjacencyGraph <TVertex, TEdge>(IEnumerable <TEdge> edges, bool allowParallelEdges)
            where TEdge : IEdge <TVertex>
        {
            // TODO: add assertions to method GraphExtensionsTest.ToAdjacencyGraph(IEnumerable`1<!!1>, Boolean)
            AdjacencyGraph <TVertex, TEdge> result
                = GraphExtensions.ToAdjacencyGraph <TVertex, TEdge>(edges, allowParallelEdges);

            return(result);
        }
예제 #4
0
        public AdjacencyGraph <TVertex, TEdge> ToAdjacencyGraph03 <TVertex, TEdge>(
            IEnumerable <TVertex> vertices,
            Func <TVertex, IEnumerable <TEdge> > outEdgesFactory
            )
            where TEdge : IEdge <TVertex>
        {
            // TODO: add assertions to method GraphExtensionsTest.ToAdjacencyGraph03(IEnumerable`1<!!0>, Func`2<!!0,IEnumerable`1<!!1>>)
            AdjacencyGraph <TVertex, TEdge> result
                = GraphExtensions.ToAdjacencyGraph <TVertex, TEdge>(vertices, outEdgesFactory);

            return(result);
        }
예제 #5
0
        public AdjacencyGraph <TVertex, TEdge> ToAdjacencyGraph02 <TVertex, TEdge>(
            IEnumerable <TVertex> vertices,
            Func <TVertex, IEnumerable <TEdge> > outEdgesFactory,
            bool allowParallelEdges
            )
            where TEdge : IEdge <TVertex>
        {
            // TODO: add assertions to method GraphExtensionsTest.ToAdjacencyGraph02(IEnumerable`1<!!0>, Func`2<!!0,IEnumerable`1<!!1>>, Boolean)
            AdjacencyGraph <TVertex, TEdge> result
                = GraphExtensions.ToAdjacencyGraph <TVertex, TEdge>
                      (vertices, outEdgesFactory, allowParallelEdges);

            return(result);
        }