コード例 #1
0
        public new DynamicArc GenerateReverse()
        {
            var a = new DynamicArc(this.Destination, this.Origin, this.Weight);

            a.AutoAttach();
            return(a);
        }
コード例 #2
0
 private void DenyArc(DynamicArc arc)
 {
     arc.UpdateWeight();
     if (!modifiedArcs.Contains(arc))
     {
         modifiedArcs.Add(arc);
     }
 }
コード例 #3
0
        private void ModifyArcWeightAtPosition(ShortestPath p, int i)
        {
            Node       origin      = p.OrderedNodes[i];
            Node       destination = p.OrderedNodes[i + 1];
            DynamicArc arc         = (DynamicArc)(p.OrderedArcs.Find(a => a.Origin.Equals(origin) && a.Destination.Equals(destination)));

            DenyArc(arc);
        }