Changeset 8555 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Interfaces/IGenealogyGraph.cs
- Timestamp:
- 09/03/12 14:58:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.EvolutionaryTracking/3.4/Interfaces/IGenealogyGraph.cs
r7799 r8555 21 21 22 22 using System; 23 using System.Collections.Generic;24 23 using HeuristicLab.Core; 25 24 26 25 namespace HeuristicLab.EvolutionaryTracking { 27 26 public interface IGenealogyGraph<T> : INamedItem where T : class { 28 // node/vertex operations29 27 bool HasNode(T t); // graph contains specific node? 30 bool Any(Func< KeyValuePair<T, GenealogyGraphNode>, bool> predicate); // graph contains any nodes matching the given predicate?28 bool Any(Func<T, bool> predicate); // graph contains any nodes matching the given predicate? 31 29 void Clear(); // clear graph 32 void AddNode(T t);30 void AddNode(T nodeData); 33 31 void RemoveNode(T t); // remove node if contained in the graph 34 GenealogyGraphNode GetNode(T t); // return node corresponding to object t, or null 35 // arc operation 32 GenealogyGraphNode GetNode(T t); // return node corresponding to object nodeData, or null 36 33 void AddArc(T source, T target, object sourceData = null, object targetData = null); 37 //void AddArcs(T[] a, T b);38 34 } 39 35 }
Note: See TracChangeset
for help on using the changeset viewer.