Interface ITermBidirectionalGraph<TVertex, TEdge>
A directed graph with vertices of type TVertex
and terminal edges of type TEdge
, that is efficient
to traverse both in and out edges.
Inherited Members
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public interface ITermBidirectionalGraph<TVertex, TEdge> : IBidirectionalGraph<TVertex, TEdge>, IVertexAndEdgeListGraph<TVertex, TEdge>, IVertexListGraph<TVertex, TEdge>, IEdgeListGraph<TVertex, TEdge>, IEdgeSet<TVertex, TEdge>, IVertexSet<TVertex>, IBidirectionalIncidenceGraph<TVertex, TEdge>, IIncidenceGraph<TVertex, TEdge>, IImplicitGraph<TVertex, TEdge>, IGraph<TVertex, TEdge>, IImplicitVertexSet<TVertex> where TEdge : ITermEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Methods
| Improve this Doc View SourceInDegreeAt(TVertex, Int32)
Gets the vertex
in-degree for the requested terminal.
Declaration
int InDegreeAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | In terminal index. |
Returns
Type | Description |
---|---|
System.Int32 | The |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
InEdgesAt(TVertex, Int32)
Gets the vertex
in-edges for the requested terminal.
Declaration
IEnumerable<TEdge> InEdgesAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | In terminal index. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TEdge> | The |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
InTerminalCount(TVertex)
Gets the number of in terminals on the given vertex
.
Declaration
int InTerminalCount(TVertex vertex)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
Returns
Type | Description |
---|---|
System.Int32 | Number of in terminals. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
IsInEdgesEmptyAt(TVertex, Int32)
Checks if the requested in terminal is empty or not for the given vertex
.
Declaration
bool IsInEdgesEmptyAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | In terminal index. |
Returns
Type | Description |
---|---|
System.Boolean | True if the in terminal is empty, false otherwise. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
IsOutEdgesEmptyAt(TVertex, Int32)
Checks if the requested out terminal is empty or not for the given vertex
.
Declaration
bool IsOutEdgesEmptyAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | Out terminal index. |
Returns
Type | Description |
---|---|
System.Boolean | True if the out terminal is empty, false otherwise. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
OutDegreeAt(TVertex, Int32)
Gets the vertex
out-degree for the requested terminal.
Declaration
int OutDegreeAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | Out terminal index. |
Returns
Type | Description |
---|---|
System.Int32 | The |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
OutEdgesAt(TVertex, Int32)
Gets the vertex
out edges for the requested terminal.
Declaration
IEnumerable<TEdge> OutEdgesAt(TVertex vertex, int terminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | Out terminal index. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TEdge> | The |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
OutTerminalCount(TVertex)
Gets the number of out terminals on the given vertex
.
Declaration
int OutTerminalCount(TVertex vertex)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
Returns
Type | Description |
---|---|
System.Int32 | Number of out terminals. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
VertexNotFoundException |
|
TryGetInEdgesAt(TVertex, Int32, out IEnumerable<TEdge>)
Tries to get the vertex
in-edges for the requested terminal.
Declaration
bool TryGetInEdgesAt(TVertex vertex, int terminal, out IEnumerable<TEdge> edges)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | Out terminal index. |
System.Collections.Generic.IEnumerable<TEdge> | edges | In-edges found, otherwise null. |
Returns
Type | Description |
---|---|
System.Boolean | True if |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
TryGetOutEdgesAt(TVertex, Int32, out IEnumerable<TEdge>)
Tries to get the vertex
out-edges for the requested terminal.
Declaration
bool TryGetOutEdgesAt(TVertex vertex, int terminal, out IEnumerable<TEdge> edges)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
System.Int32 | terminal | Out terminal index. |
System.Collections.Generic.IEnumerable<TEdge> | edges | Out-edges found, otherwise null. |
Returns
Type | Description |
---|---|
System.Boolean | True if |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|