Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/14 14:18:24 (10 years ago)
Author:
bburlacu
Message:

#1772: Removed Storable property from Vertex in- and outArcs as it causes a stack overflow exception during serialization. Added a list of arcs to the DirectedGraph class which is persisted. The Vertex in- and outArcs lists are then restored by the graph after the deserialization. Renamed Nodes data member to Vertices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphChart.cs

    r10888 r10903  
    129129
    130130      // add arcs
    131       foreach (var node in GenealogyGraph.Nodes) {
     131      foreach (var node in GenealogyGraph.Vertices) {
    132132        if (!node.InArcs.Any()) continue;
    133133        var visualNode = GetMappedNode(node);
     
    246246      Chart.UpdateEnabled = false;
    247247      ClearPrimitives();
    248       var arcs = GenealogyGraph.Nodes.SelectMany(n => n.InArcs).ToList();
     248      var arcs = GenealogyGraph.Vertices.SelectMany(n => n.InArcs).ToList();
    249249      foreach (var arc in arcs) { arc.Weight = 1.0; } // reset weights
    250250      var rank = GenealogyGraph.Ranks.Keys.Max();
Note: See TracChangeset for help on using the changeset viewer.