Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/14 15:02:27 (11 years ago)
Author:
mkommend
Message:

#2223: Copied directed graph implented in bottom up tree distance branch into the trunk.

Location:
trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph
Files:
1 added
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs

    r11239 r11241  
    2121
    2222using System;
    23 using HeuristicLab.Core;
     23using HeuristicLab.Common;
    2424
    25 namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     25namespace HeuristicLab.Core {
    2626  public interface IArc : IItem {
    27     event EventHandler Changed; // generic event for when the label, weight or data were changed
    2827    IVertex Source { get; }
    2928    IVertex Target { get; }
    3029    string Label { get; set; }
    3130    double Weight { get; set; }
    32     object Data { get; set; }
     31    IDeepCloneable Data { get; set; }
     32
     33    event EventHandler Changed; // generic event for when the label, weight or data were changed
    3334  }
    3435
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IDirectedGraph.cs

    r11239 r11241  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2222using System;
    2323using System.Collections.Generic;
    24 using HeuristicLab.Core;
    2524
    26 namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     25namespace HeuristicLab.Core {
    2726  public interface IDirectedGraph : IItem {
    2827    void Clear();
  • trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IVertex.cs

    r11239 r11241  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2323using System.Collections.Generic;
    2424using HeuristicLab.Common;
    25 using HeuristicLab.Core;
    2625
    27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
     26namespace HeuristicLab.Core {
    2827  public interface IVertex : IItem {
    29     event EventHandler Changed; // generic event for when the content, label or weight have changed
    30     event EventHandler<EventArgs<IArc>> ArcAdded;
    31     event EventHandler<EventArgs<IArc>> ArcRemoved;
    32 
    3328    IEnumerable<IArc> InArcs { get; }
    3429    IEnumerable<IArc> OutArcs { get; }
     
    4136    double Weight { get; set; }
    4237
    43     object Content { get; set; }
     38    IDeepCloneable Data { get; set; }
    4439
    4540    void AddArc(IArc arc);
    4641    void RemoveArc(IArc arc);
     42
     43    event EventHandler Changed; // generic event for when the content, label or weight have changed
     44    event EventHandler<EventArgs<IArc>> ArcAdded;
     45    event EventHandler<EventArgs<IArc>> ArcRemoved;
    4746  }
    4847
    4948  public interface IVertex<T> : IVertex
    5049  where T : class {
    51     new T Content { get; set; }
     50    new T Data { get; set; }
    5251  }
    5352}
Note: See TracChangeset for help on using the changeset viewer.