Search Results for

    Show / Hide Table of Contents

    Class Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StronglyConnectedComponent

    Represents a strongly connected component of an automaton graph.

    Inheritance
    Object
    Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.StronglyConnectedComponent
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 state in the component, or -1 if it does not belong to the component.

    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 state belongs to the component, false otherwise.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.