Changeset 9419 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/SymbolGraph.cs
- Timestamp:
- 05/02/13 13:18:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/SymbolGraph.cs
r9082 r9419 21 21 22 22 using System.Collections.Generic; 23 using System.Linq; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 28 29 [Item("Symbol graph", "A graph used to store the relationship between symbols in a population of individuals")] 29 30 [StorableClass] 30 public class SymbolGraph : DirectedGraph<SymbolNode> {31 public class SymbolGraph : GenericGraph<SymbolNode> { 31 32 [Storable] 32 33 private Dictionary<string, SymbolNode> nodes = new Dictionary<string, SymbolNode>(); … … 58 59 public Dictionary<int, int> Positions { get; set; } 59 60 public double AverageArity { get; set; } 61 62 public new List<SymbolArc> InEdges { 63 get { return base.InEdges == null ? null : base.InEdges.Cast<SymbolArc>().ToList(); } 64 } 65 66 public new List<SymbolArc> OutEdges { 67 get { return base.OutEdges == null ? null : base.OutEdges.Cast<SymbolArc>().ToList(); } 68 } 69 } 70 71 public class SymbolArc : IEdge { 72 public IVertex Source { get; set; } 73 public IVertex Target { get; set; } 74 public double Weight { get; set; } 60 75 } 61 76 } 62
Note: See TracChangeset
for help on using the changeset viewer.