Changeset 10285 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Vertex.cs
- Timestamp:
- 01/05/14 20:47:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Vertex.cs
r10278 r10285 77 77 // (they do not appear in the nodes Dictionary). It is the programmers responsibility to 78 78 // enforce the correct and desired behavior. 79 public void AddForwardArc(IVertex target, double w eight= 0.0, object data = null) {80 var e = new Arc { Source = this, Target = target, Data = data, Weight = w eight};79 public void AddForwardArc(IVertex target, double w = 0.0, object data = null) { 80 var e = new Arc { Source = this, Target = target, Data = data, Weight = w }; 81 81 if (OutArcs == null) OutArcs = new List<IArc> { e }; 82 82 else OutArcs.Add(e); … … 92 92 if (InArcs == null) { InArcs = new List<IArc> { arc }; } else { InArcs.Add(arc); } 93 93 } 94 public void AddReverseArc(IVertex source, double w eight= 0.0, object data = null) {95 var e = new Arc { Source = source, Target = this, Data = data, Weight = w eight};94 public void AddReverseArc(IVertex source, double w = 0.0, object data = null) { 95 var e = new Arc { Source = source, Target = this, Data = data, Weight = w }; 96 96 if (InArcs == null) InArcs = new List<IArc> { e }; 97 97 else InArcs.Add(e);
Note: See TracChangeset
for help on using the changeset viewer.