Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 21:44:36 (10 years ago)
Author:
bburlacu
Message:

#1772: Cleaned up the design of the generic genealogy analyzer and related classes, created generic genealogy graph view. Added instrumentation code to TravelingSalesmapProblem.cs allowing genealogy tracking. Merged trunk changes (instrumentation for multi operators).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Interfaces/IDirectedGraph.cs

    r10278 r10300  
    2525
    2626namespace HeuristicLab.EvolutionTracking {
    27   public interface IDirectedGraph : IItem { }
    28   public interface IDirectedGraph<TVertex> : IDirectedGraph
    29     where TVertex : class, IVertex {
    30     bool Contains(TVertex vertex);
    31     bool Any(Func<TVertex, bool> predicate); // graph contains any nodes matching the given predicate?
    32     void Clear(); // clear graph
    33     void AddVertex(TVertex vertex);
    34     void RemoveVertex(TVertex vertex); // remove node if contained in the graph
    35     List<TVertex> Nodes { get; }
    36   }
    37   public interface IDirectedGraph<TVertex, in TContent> : IDirectedGraph<TVertex>
    38     where TVertex : class, IVertex
    39     where TContent : class, IItem {
    40     bool Contains(TContent content); // graph contains node with given content?
     27  public interface IDirectedGraph : IItem {
     28    bool Contains(IVertex vertex);
     29    bool Any(Func<IVertex, bool> predicate);
     30    void Clear();
     31    void AddVertex(IVertex vertex);
     32    void RemoveVertex(IVertex vertex);
     33    List<IVertex> Nodes { get; }
     34    List<IVertex> this[object content] { get; }
     35    bool Contains(object content);
    4136  }
    4237}
Note: See TracChangeset for help on using the changeset viewer.