Interface IAlgorithmComponent
Represents algorithm component (services).
Namespace: QuikGraph.Algorithms.Services
Assembly: QuikGraph.dll
Syntax
public interface IAlgorithmComponent
Properties
| Improve this Doc View SourceServices
Algorithm common services.
Declaration
IAlgorithmServices Services { get; }
Property Value
Type | Description |
---|---|
IAlgorithmServices |
Methods
| Improve this Doc View SourceGetService<T>()
Gets the service with given T
.
Declaration
T GetService<T>()
Returns
Type | Description |
---|---|
T | Found service, otherwise null. |
Type Parameters
Name | Description |
---|---|
T | Service type. |
TryGetService<T>(out T)
Tries to get the service with given T
.
Declaration
bool TryGetService<T>(out T service)
Parameters
Type | Name | Description |
---|---|---|
T | service | Found service. |
Returns
Type | Description |
---|---|
System.Boolean | True if the service was found, false otherwise. |
Type Parameters
Name | Description |
---|---|
T | Service type. |