Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/15 23:17:56 (9 years ago)
Author:
bburlacu
Message:

#1772: Added some useful functionality to the GenealogyGraphView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs

    r11752 r11852  
    154154      sb.AppendLine("graph fragmentgraph {");
    155155      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)) + "\"]");
    157158      }
    158159      foreach (var a in Arcs) {
     
    167168      if (colorIndex >= ColorGradient.Colors.Count) return ColorGradient.Colors.Last();
    168169      return ColorGradient.Colors[colorIndex];
     170    }
     171
     172    public override void AddVertices(IEnumerable<IVertex> vertexList) {
     173      base.AddVertices(vertexList);
     174      RebuildDictionaries();
    169175    }
    170176  }
Note: See TracChangeset for help on using the changeset viewer.