Method ConvertNodeType
ConvertNodeType<TResult>(Func<T, TResult>)
Converts the graph to use a different node type.
Declaration
public Graph<TResult> ConvertNodeType<TResult>(Func<T, TResult> converter) where TResult : IEquatable<TResult>
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T, TResult> | converter | Converter from the source node type to the destination type. |
Returns
| Type | Description |
|---|---|
| Graph<TResult> | A graph with converted node values. |
Type Parameters
| Name | Description |
|---|---|
| TResult | The destination node type. |