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/3.4/DirectedGraph/Vertex.cs

    r10897 r10903  
    7070    }
    7171
    72     [Storable]
    7372    private List<IArc> inArcs;
    7473    public IEnumerable<IArc> InArcs {
     
    7776    }
    7877
    79     [Storable]
    8078    private List<IArc> outArcs;
    8179    public IEnumerable<IArc> OutArcs {
     
    111109
    112110    [StorableHook(HookType.AfterDeserialization)]
    113     protected void AfterDeserialization() {
     111    private void AfterDeserialization() {
    114112      if (Id == null) {
    115113        id = Guid.NewGuid().ToString();
Note: See TracChangeset for help on using the changeset viewer.