Changeset 11852 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Timestamp:
- 02/01/15 23:17:56 (9 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r11752 r11852 154 154 sb.AppendLine("graph fragmentgraph {"); 155 155 foreach (var v in Vertices) { 156 sb.AppendLine("\"" + v.Id + "\"[shape=circle, style = filled, width = " + v.Degree / 2.0 + ", label = " + v.Rank + ", fillcolor = \"" + ColorTranslator.ToHtml(GetColor(v)) + "\"]"); 156 double width = Math.Max(0.5, v.Degree); 157 sb.AppendLine("\"" + v.Id + "\"[shape=circle, style = filled, width = " + width + ", label = " + v.Rank + "\n" + String.Format("{0:00}", v.Quality) + ", fillcolor = \"" + ColorTranslator.ToHtml(GetColor(v)) + "\"]"); 157 158 } 158 159 foreach (var a in Arcs) { … … 167 168 if (colorIndex >= ColorGradient.Colors.Count) return ColorGradient.Colors.Last(); 168 169 return ColorGradient.Colors[colorIndex]; 170 } 171 172 public override void AddVertices(IEnumerable<IVertex> vertexList) { 173 base.AddVertices(vertexList); 174 RebuildDictionaries(); 169 175 } 170 176 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphNode.cs
r11750 r11852 62 62 get { return InArcs.Select(a => a.Source); } 63 63 } 64 64 65 public IEnumerable<IGenealogyGraphNode> Children { 65 66 get { return OutArcs.Select(a => a.Target); }
Note: See TracChangeset
for help on using the changeset viewer.