Changeset 10300 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Interfaces/IDirectedGraph.cs
- Timestamp:
- 01/07/14 21:44:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/DirectedGraph/Interfaces/IDirectedGraph.cs
r10278 r10300 25 25 26 26 namespace 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); 41 36 } 42 37 }
Note: See TracChangeset
for help on using the changeset viewer.