Interface IIncidenceGraph<TVertex, TEdge>
An incident graph with vertices of type TVertex
and edges of type TEdge.
Inherited Members
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public interface IIncidenceGraph<TVertex, TEdge> : IImplicitGraph<TVertex, TEdge>, IGraph<TVertex, TEdge>, IImplicitVertexSet<TVertex> where TEdge : IEdge<TVertex>
  Type Parameters
| Name | Description | 
|---|---|
| TVertex | Vertex type.  | 
      
| TEdge | Edge type.  | 
      
Methods
| Improve this Doc View SourceContainsEdge(TVertex, TVertex)
Checks if this graph contains an edge that link
source and target vertices.
Declaration
bool ContainsEdge(TVertex source, TVertex target)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TVertex | source | Source vertex.  | 
      
| TVertex | target | Target vertex.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if an edge exists, false otherwise.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
  | 
      
| System.ArgumentNullException | 
  | 
      
TryGetEdge(TVertex, TVertex, out TEdge)
Tries to get the edge that link
source and target vertices.
Declaration
bool TryGetEdge(TVertex source, TVertex target, out TEdge edge)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TVertex | source | Source vertex.  | 
      
| TVertex | target | Target vertex.  | 
      
| TEdge | edge | Edge found, otherwise null.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if an edge was found, false otherwise.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
  | 
      
| System.ArgumentNullException | 
  | 
      
TryGetEdges(TVertex, TVertex, out IEnumerable<TEdge>)
Tries to get edges that link
source and target vertices.
Declaration
bool TryGetEdges(TVertex source, TVertex target, out IEnumerable<TEdge> edges)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TVertex | source | Source vertex.  | 
      
| TVertex | target | Target vertex.  | 
      
| System.Collections.Generic.IEnumerable<TEdge> | edges | Edges found, otherwise null.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if at least an edge was found, false otherwise.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
  | 
      
| System.ArgumentNullException | 
  |