Class NormalizedMarkovEdgeChain<TVertex, TEdge>
Normalized Markov chain implementation.
Inheritance
System.Object
MarkovEdgeChainBase<TVertex, TEdge>
NormalizedMarkovEdgeChain<TVertex, TEdge>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: QuikGraph.Algorithms.RandomWalks
Assembly: QuikGraph.dll
Syntax
public sealed class NormalizedMarkovEdgeChain<TVertex, TEdge> : MarkovEdgeChainBase<TVertex, TEdge>, IMarkovEdgeChain<TVertex, TEdge>, IEdgeChain<TVertex, TEdge> where TEdge : IEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Methods
| Improve this Doc View SourceTryGetSuccessor(IImplicitGraph<TVertex, TEdge>, TVertex, out TEdge)
Tries to get the successor of the given vertex
in the given graph
.
Declaration
public override bool TryGetSuccessor(IImplicitGraph<TVertex, TEdge> graph, TVertex vertex, out TEdge successor)
Parameters
Type | Name | Description |
---|---|---|
IImplicitGraph<TVertex, TEdge> | graph | The graph to search in. |
TVertex | vertex | The vertex. |
TEdge | successor | Found successor, otherwise null. |
Returns
Type | Description |
---|---|
System.Boolean | True if a successor was found, false otherwise. |
Overrides
QuikGraph.Algorithms.RandomWalks.MarkovEdgeChainBase<TVertex, TEdge>.TryGetSuccessor(QuikGraph.IImplicitGraph<TVertex, TEdge>, TVertex, TEdge)
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
TryGetSuccessor(IEnumerable<TEdge>, TVertex, out TEdge)
Tries to get the successor of the given vertex
in the given set of edges
.
Declaration
public override bool TryGetSuccessor(IEnumerable<TEdge> edges, TVertex vertex, out TEdge successor)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEdge> | edges | Edge set in which searching. |
TVertex | vertex | The vertex. |
TEdge | successor | Found successor, otherwise null. |
Returns
Type | Description |
---|---|
System.Boolean | True if a successor was found, false otherwise. |
Overrides
QuikGraph.Algorithms.RandomWalks.MarkovEdgeChainBase<TVertex, TEdge>.TryGetSuccessor(System.Collections.Generic.IEnumerable<TEdge>, TVertex, TEdge)
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|