Interface IHighlightAlgorithm<TVertex, TEdge>
Represents a graph highlighting algorithm.
Namespace: GraphShape.Algorithms.Highlight
Assembly: GraphShape.dll
Syntax
public interface IHighlightAlgorithm<in TVertex, in TEdge>
where TEdge : IEdge<TVertex>
Type Parameters
| Name | Description |
|---|---|
| TVertex | Vertex type. |
| TEdge | Edge type. |
Properties
| Improve this Doc View SourceParameters
Highlight parameters.
Declaration
IHighlightParameters Parameters { get; }
Property Value
| Type | Description |
|---|---|
| IHighlightParameters |
Methods
| Improve this Doc View SourceIsParametersSettable(IHighlightParameters)
Checks if given highlight algorithm parameters
can be set to this highlight algorithm.
Declaration
bool IsParametersSettable(IHighlightParameters parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| IHighlightParameters | parameters | Highlight parameters to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if parameters can be set, false otherwise. |
OnEdgeHighlighting(TEdge)
Asks to highlight the given edge.
Declaration
bool OnEdgeHighlighting(TEdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| TEdge | edge | Edge to highlight. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
OnEdgeHighlightRemoving(TEdge)
Asks to remove the highlighting of the given edge.
Declaration
bool OnEdgeHighlightRemoving(TEdge edge)
Parameters
| Type | Name | Description |
|---|---|---|
| TEdge | edge | Edge to remove its highlighting. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
OnVertexHighlighting(TVertex)
Asks to highlight the given vertex.
Declaration
bool OnVertexHighlighting(TVertex vertex)
Parameters
| Type | Name | Description |
|---|---|---|
| TVertex | vertex | Vertex to highlight. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
OnVertexHighlightRemoving(TVertex)
Asks to remove the highlighting of the given vertex.
Declaration
bool OnVertexHighlightRemoving(TVertex vertex)
Parameters
| Type | Name | Description |
|---|---|---|
| TVertex | vertex | Vertex to remove its highlighting. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
ResetHighlight()
Resets the whole highlight.
Declaration
void ResetHighlight()
TrySetParameters(IHighlightParameters)
Tries to set the given highlight algorithm parameters.
Declaration
bool TrySetParameters(IHighlightParameters parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| IHighlightParameters | parameters | Highlight parameters to set. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if parameters were set, false otherwise. |