GraphBaseTVertex, TEdge Properties |
The GraphBaseTVertex, TEdge generic type exposes the following members.
Name | Description | |
---|---|---|
EdgeCount |
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.
| |
EdgeProducerFunc |
Gets or sets the edge producer func which produces edges for this graph. Used in some algorithms which have to produce edges.
| |
Edges |
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.
| |
IsDirected | 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.
| |
IsSynchronized | ||
RemoveOrphanedVerticesOnEdgeRemoval |
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.
| |
SuppressEvents |
Gets or sets a value indicating whether events are blocked from being raised (true) or not (false, default)
| |
SyncRoot | ||
VertexCount |
Returns the number of vertices in this graph.
| |
Vertices |
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.
|