Interface ITransitionFactory<TVertex, TEdge>
Represents a transition factory.
Namespace: QuikGraph.Algorithms.Exploration
Assembly: QuikGraph.dll
Syntax
public interface ITransitionFactory<in TVertex, out TEdge>
where TVertex : ICloneable where TEdge : IEdge<TVertex>
Type Parameters
| Name | Description |
|---|---|
| TVertex | Vertex type. |
| TEdge | Edge type. |
Methods
| Improve this Doc View SourceApply(TVertex)
Applies the transition from the given source.
Declaration
IEnumerable<TEdge> Apply(TVertex source)
Parameters
| Type | Name | Description |
|---|---|---|
| TVertex | source | Source vertex. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TEdge> | Edges resulting of the apply. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
IsValid(TVertex)
Checks if the given vertex is valid or not.
Declaration
bool IsValid(TVertex vertex)
Parameters
| Type | Name | Description |
|---|---|---|
| TVertex | vertex | Vertex to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the vertex is valid, false otherwise. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|