Search Results for

    Show / Hide Table of Contents

    Class SuffixStructureEdgeExtensions

    Extension methods for all ISuffixStructureEdge<TEdge, TNode> edge concretions.

    Inheritance
    System.Object
    SuffixStructureEdgeExtensions
    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: MoreStructures.SuffixStructures
    Assembly: MoreStructures.dll
    Syntax
    public static class SuffixStructureEdgeExtensions

    Methods

    | Improve this Doc View Source

    ContainsIndex<TEdge, TNode>(ISuffixStructureEdge<TEdge, TNode>, Int32)

    Whether the provided edge contains the provided index.

    Declaration
    public static bool ContainsIndex<TEdge, TNode>(this ISuffixStructureEdge<TEdge, TNode> edge, int index)
        where TEdge : ISuffixStructureEdge<TEdge, TNode> where TNode : ISuffixStructureNode<TEdge, TNode>
    Parameters
    Type Name Description
    ISuffixStructureEdge<TEdge, TNode> edge

    The edge to check.

    System.Int32 index

    The index of the char of the text, to look for. Must be non-negative.

    Returns
    Type Description
    System.Boolean

    A boolean.

    Type Parameters
    Name Description
    TEdge

    TNode

    | Improve this Doc View Source

    ContainsIndexesNonBiggerThan<TEdge, TNode>(ISuffixStructureEdge<TEdge, TNode>, Int32)

    Whether the provided edge has a Start lower or equal than the provided index.

    Declaration
    public static bool ContainsIndexesNonBiggerThan<TEdge, TNode>(this ISuffixStructureEdge<TEdge, TNode> edge, int index)
        where TEdge : ISuffixStructureEdge<TEdge, TNode> where TNode : ISuffixStructureNode<TEdge, TNode>
    Parameters
    Type Name Description
    ISuffixStructureEdge<TEdge, TNode> edge

    The edge to check.

    System.Int32 index

    The index of the char of the text, to look for. Must be non-negative.

    Returns
    Type Description
    System.Boolean

    A boolean.

    Type Parameters
    Name Description
    TEdge

    TNode

    | Improve this Doc View Source

    IsAdjacentTo<TEdge, TNode>(ISuffixStructureEdge<TEdge, TNode>, TEdge, AdjacencyOrders)

    Whether first is in adjacency order w.r.t. second, acoording to the provided order.

    Declaration
    public static bool IsAdjacentTo<TEdge, TNode>(this ISuffixStructureEdge<TEdge, TNode> first, TEdge second, AdjacencyOrders order = AdjacencyOrders.BeforeOrAfter)
        where TEdge : ISuffixStructureEdge<TEdge, TNode> where TNode : ISuffixStructureNode<TEdge, TNode>
    Parameters
    Type Name Description
    ISuffixStructureEdge<TEdge, TNode> first

    The edge to be compared for adjacency.

    TEdge second

    The edge to compare the first edge against.

    AdjacencyOrders order

    The adjacency relationship order to use for comparison.

    Returns
    Type Description
    System.Boolean

    True if the specified adjacency relationship is respected.

    Type Parameters
    Name Description
    TEdge

    TNode

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX