Beispiel #1
0
        public LGSPEdge Retype(LGSPGraph graph, LGSPEdge oldEdge)
        {
            Edge_fluffway newEdge = new Edge_fluffway(oldEdge.source, oldEdge.target);

            switch (oldEdge.Type.TypeID)
            {
            case (int)EdgeTypes.@speedcon:
            case (int)EdgeTypes.@bigspeedcon:
            case (int)EdgeTypes.@connection:
            {
                IEdge_connection old = (IEdge_connection)oldEdge;
                newEdge.bandwidth = old.bandwidth;
                break;
            }

            case (int)EdgeTypes.@Edge:
            {
                break;
            }
            }

            graph.ReplaceEdge(oldEdge, newEdge);

            return(newEdge);
        }
Beispiel #2
0
        public static Edge_fluffway CreateEdge(LGSPGraph graph, LGSPNode source, LGSPNode target)
        {
            Edge_fluffway edge = new Edge_fluffway(source, target);

            graph.AddEdge(edge);
            return(edge);
        }
Beispiel #3
0
        public LGSPEdge Retype(LGSPGraph graph, LGSPEdge oldEdge)
        {
            Edge_fluffway newEdge = new Edge_fluffway(oldEdge.source, oldEdge.target);
            switch(oldEdge.Type.TypeID)
            {
                case (int) EdgeTypes.@speedcon:
                case (int) EdgeTypes.@bigspeedcon:
                case (int) EdgeTypes.@connection:
                {
                    IEdge_connection old = (IEdge_connection) oldEdge;
                    newEdge.bandwidth = old.bandwidth;
                    break;
                }
                case (int) EdgeTypes.@Edge:
                {
                    break;
                }
            }

            graph.ReplaceEdge(oldEdge, newEdge);

            return newEdge;
        }
Beispiel #4
0
		public static Edge_fluffway CreateEdge(LGSPGraph graph, LGSPNode source, LGSPNode target)
		{
			Edge_fluffway edge = new Edge_fluffway(source, target);
			graph.AddEdge(edge);
			return edge;
		}