Click or drag to resize

GraphBaseTVertex, TEdge Properties

The GraphBaseTVertex, TEdge generic type exposes the following members.

Properties
  NameDescription
Public propertyEdgeCount
Returns the number of edges in this graph. If this graph is a directed graph, it counts the edge A to B as an edge, but B to A, if not present, isn't counted. A non-directed graph has an edge between A and B but also between B and A. This is counted as 1 edge, not two.
Public propertyEdgeProducerFunc
Gets or sets the edge producer func which produces edges for this graph. Used in some algorithms which have to produce edges.
Public propertyEdges
Returns the edges in this graph. Enumerating this property will enumerate the inner structures of the graph, no copy is made. This requires a lock on SyncRoot if IsSynchronized is set to true to make sure enumeration of this property is thread safe.
Public propertyIsDirected
if true, the graph is directed and only EdgeBase instances which have IsDirected set to true are allowed, otherwise it's a non-directed graph and EdgeBase instances which have IsDirected set to false are accepted.
Public propertyIsSynchronized
Gets a value indicating whether access to the Vertices and Edges is synchronized (thread safe). Default: false. Set to true to in the ctor to make sure the operations on this object are using locks. Use SyncRoot to lock on the same object as this class' internal operations.
Public propertyRemoveOrphanedVerticesOnEdgeRemoval
Gets or sets a value indicating whether vertices which are not part of any edge anymore are removed from the graph when the edge they're part of is removed from the graph (so they effectively are orphaned). Default is false.
Protected propertySuppressEvents
Gets or sets a value indicating whether events are blocked from being raised (true) or not (false, default)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the Vertices and Edges properties. It's the same object used in locks inside this object.
Public propertyVertexCount
Returns the number of vertices in this graph.
Public propertyVertices
Returns the vertices in this graph. Enumerating this property will enumerate the inner structures of the graph, no copy is made. This requires a lock on SyncRoot if IsSynchronized is set to true to make sure enumeration of this property is thread safe.
Top
See Also