Interface IMutableUndirectedGraph<TVertex, TEdge>
A mutable indirect graph with vertices of type TVertex
and edges of type TEdge
.
Inherited Members
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public interface IMutableUndirectedGraph<TVertex, TEdge> : IUndirectedGraph<TVertex, TEdge>, IImplicitUndirectedGraph<TVertex, TEdge>, IMutableVertexAndEdgeSet<TVertex, TEdge>, IMutableVertexSet<TVertex>, IMutableEdgeListGraph<TVertex, TEdge>, IMutableGraph<TVertex, TEdge>, IEdgeListGraph<TVertex, TEdge>, IGraph<TVertex, TEdge>, IEdgeSet<TVertex, TEdge>, IVertexSet<TVertex>, IImplicitVertexSet<TVertex> where TEdge : IEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Methods
| Improve this Doc View SourceClearAdjacentEdges(TVertex)
Clears adjacent edges of the given vertex
.
Declaration
void ClearAdjacentEdges(TVertex vertex)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
RemoveAdjacentEdgeIf(TVertex, EdgePredicate<TVertex, TEdge>)
Removes adjacent edges of the given vertex
if edge matches the predicate
.
Declaration
int RemoveAdjacentEdgeIf(TVertex vertex, EdgePredicate<TVertex, TEdge> predicate)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex | The vertex. |
EdgePredicate<TVertex, TEdge> | predicate | Predicate to match edges. |
Returns
Type | Description |
---|---|
System.Int32 | The number of removed edges. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|