Class Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StronglyConnectedComponent
Represents a strongly connected component of an automaton graph.
Inheritance
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class StronglyConnectedComponent
Properties
Automaton
Automaton to which all states belong.
Declaration
public Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis> Automaton { get; }
Property Value
Type | Description |
---|---|
Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis> |
Size
Gets the number of states in the component.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetIndexByState(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State)
Attempts to retrieve the index of a given state in the component.
Declaration
public int GetIndexByState(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State state)
Parameters
Type | Name | Description |
---|---|---|
Automaton.State<> | state | The state. |
Returns
Type | Description |
---|---|
Int32 | The index of |
GetStateByIndex(Int32)
Gets the state by its index in the component.
Declaration
public Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State GetStateByIndex(int indexInComponent)
Parameters
Type | Name | Description |
---|---|---|
Int32 | indexInComponent | The index of the state in the component. Must be non-negative and less than Size. |
Returns
Type | Description |
---|---|
Automaton.State<> | The state corresponding to the specified index. |
GetWeight(Int32, Int32)
Gets the total weight between two given states in the component.
Declaration
public Weight GetWeight(int srcStateIndexInComponent, int destStateIndexInComponent)
Parameters
Type | Name | Description |
---|---|---|
Int32 | srcStateIndexInComponent | The index of the source state in the component. |
Int32 | destStateIndexInComponent | The index of the destination state in the component. |
Returns
Type | Description |
---|---|
Weight | The total weight between the given states in the component. |
HasState(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State)
Checks whether the given state belongs to this component.
Declaration
public bool HasState(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State state)
Parameters
Type | Name | Description |
---|---|---|
Automaton.State<> | state | The state. |
Returns
Type | Description |
---|---|
Boolean | true if |