Exemple #1
0
            public static IteratorAllEdges MakeIt(Graph <TVertex, TEdge, TData, TWeight> g)
            {
                if (g.Type == false)
                {
                    var q = new LGraph <TVertex, TEdge, TData, TWeight> .LIteratorAllEdges(g);

                    return(q);
                }

                else
                {
                    var q = new MGraph <TVertex, TEdge, TData, TWeight> .MIteratorAllEdges(g);

                    return(q);
                }
            }
Exemple #2
0
            public static IteratorOutEdge MakeIt(Vertex <TVertex> v, Graph <TVertex, TEdge, TData, TWeight> g)
            {
                if (g.Type == false)
                {
                    //IteratorOutEdge q;
                    var q = new LGraph <TVertex, TEdge, TData, TWeight> .LIteratorOutEdge(v, g);

                    return(q);
                }

                else
                {
                    var q = new MGraph <TVertex, TEdge, TData, TWeight> .MIteratorOutEdge(v, g);

                    return(q);
                }
            }