Delegate CreateEdge<TVertex, TEdge>
Delegate to create an edge in a graph between two vertices.
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public delegate TEdge CreateEdge<TVertex, TEdge>(IVertexListGraph<TVertex, TEdge> graph, TVertex source, TVertex target)
where TEdge : IEdge<TVertex>;
Parameters
| Type | Name | Description |
|---|---|---|
| IVertexListGraph<TVertex, TEdge> | graph | Graph in with adding the edge. |
| TVertex | source | Edge source vertex. |
| TVertex | target | Edge target vertex. |
Returns
| Type | Description |
|---|---|
| TEdge | The created edge. |
Type Parameters
| Name | Description |
|---|---|
| TVertex | Vertex type. |
| TEdge | Edge type. |