Show / Hide Table of Contents

Interface IMutableVertexSet<TVertex>

Represents a mutable set of vertices.

Inherited Members
IVertexSet<TVertex>.IsVerticesEmpty
IVertexSet<TVertex>.VertexCount
IVertexSet<TVertex>.Vertices
IImplicitVertexSet<TVertex>.ContainsVertex(TVertex)
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
public interface IMutableVertexSet<TVertex> : IVertexSet<TVertex>, IImplicitVertexSet<TVertex>
Type Parameters
Name Description
TVertex

Vertex type.

Methods

| Improve this Doc View Source

AddVertex(TVertex)

Adds a vertex to this set.

Declaration
bool AddVertex(TVertex vertex)
Parameters
Type Name Description
TVertex vertex

Vertex to add.

Returns
Type Description
System.Boolean

True if the vertex was added, false otherwise.

Exceptions
Type Condition
System.ArgumentNullException

vertex is null.

| Improve this Doc View Source

AddVertexRange(IEnumerable<TVertex>)

Adds given vertices to this set.

Declaration
int AddVertexRange(IEnumerable<TVertex> vertices)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TVertex> vertices

Vertices to add.

Returns
Type Description
System.Int32

The number of vertex added.

Exceptions
Type Condition
System.ArgumentNullException

vertices is null or at least one of them is null.

| Improve this Doc View Source

RemoveVertex(TVertex)

Removes the given vertex from this set.

Declaration
bool RemoveVertex(TVertex vertex)
Parameters
Type Name Description
TVertex vertex

Vertex to remove.

Returns
Type Description
System.Boolean

True if the vertex was removed, false otherwise.

Exceptions
Type Condition
System.ArgumentNullException

vertex is null.

| Improve this Doc View Source

RemoveVertexIf(VertexPredicate<TVertex>)

Removes all vertices matching the given predicate.

Declaration
int RemoveVertexIf(VertexPredicate<TVertex> predicate)
Parameters
Type Name Description
VertexPredicate<TVertex> predicate

Predicate to check on each vertex.

Returns
Type Description
System.Int32

The number of vertex removed.

Exceptions
Type Condition
System.ArgumentNullException

predicate is null.

Events

| Improve this Doc View Source

VertexAdded

Fired when a vertex is added to this set.

Declaration
event VertexAction<TVertex> VertexAdded
Event Type
Type Description
VertexAction<TVertex>
| Improve this Doc View Source

VertexRemoved

Fired when a vertex is removed from this set.

Declaration
event VertexAction<TVertex> VertexRemoved
Event Type
Type Description
VertexAction<TVertex>

Extension Methods

GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, String, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter)
GraphMLExtensions.SerializeToGraphML<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, XmlReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeFromGraphML<TVertex, TEdge, TGraph>(TGraph, String, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
GraphMLExtensions.DeserializeAndValidateFromGraphML<TVertex, TEdge, TGraph>(TGraph, TextReader, IdentifiableVertexFactory<TVertex>, IdentifiableEdgeFactory<TVertex, TEdge>)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String)
SerializationExtensions.SerializeToXml<TVertex, TEdge, TGraph>(TGraph, XmlWriter, VertexIdentity<TVertex>, EdgeIdentity<TVertex, TEdge>, String, String, String, String, Action<XmlWriter, TGraph>, Action<XmlWriter, TVertex>, Action<XmlWriter, TEdge>)
AlgorithmExtensions.GetVertexIdentity<TVertex>(IVertexSet<TVertex>)
  • Improve this Doc
  • View Source
In This Article
Back to top QuikGraph