Search Results for

    Show / Hide Table of Contents

    Class TreePathExtensions

    Extension methods for TreePath<TEdge, TNode>.

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

    Methods

    | Improve this Doc View Source

    Append<TEdge, TNode>(TreePath<TEdge, TNode>, TEdge, TNode)

    Append the provided node with its incoming edge to the provided path, bulding a new path.

    Declaration
    public static TreePath<TEdge, TNode> Append<TEdge, TNode>(this TreePath<TEdge, TNode> path, TEdge edge, TNode node)
        where TEdge : IRecImmDictIndexedTreeEdge<TEdge, TNode> where TNode : IRecImmDictIndexedTreeNode<TEdge, TNode>
    Parameters
    Type Name Description
    TreePath<TEdge, TNode> path

    The path, to appended the node and the edge to.

    TEdge edge

    The edge, pointing to the node to be appended.

    TNode node

    The node to be appended.

    Returns
    Type Description
    TreePath<TEdge, TNode>

    A new path, whose nodes are the concatenation of the nodes of the provided path and the one appended.

    Type Parameters
    Name Description
    TEdge
    TNode
    | Improve this Doc View Source

    Concat<TEdge, TNode>(TreePath<TEdge, TNode>, TreePath<TEdge, TNode>)

    Builds a new path of nodes, appending the nodes of the second path to the first path.

    Declaration
    public static TreePath<TEdge, TNode> Concat<TEdge, TNode>(this TreePath<TEdge, TNode> first, TreePath<TEdge, TNode> second)
        where TEdge : IRecImmDictIndexedTreeEdge<TEdge, TNode> where TNode : IRecImmDictIndexedTreeNode<TEdge, TNode>
    Parameters
    Type Name Description
    TreePath<TEdge, TNode> first

    The path, to append nodes to.

    TreePath<TEdge, TNode> second

    The path, whose nodes have to be appended.

    Returns
    Type Description
    TreePath<TEdge, TNode>

    A new path, whose nodes are the concatenation of the nodes of the two paths.

    Type Parameters
    Name Description
    TEdge
    TNode
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX