Search Results for

    Show / Hide Table of Contents

    Class StronglyConnectedComponents

    Defines algorithms that compute strongly connected components.

    Inheritance
    object
    StronglyConnectedComponents
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Collections
    Assembly: Flame.dll
    Syntax
    public static class StronglyConnectedComponents

    Methods

    | Edit this page View Source

    Compute<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)

    Computes all strongly connected components in a graph.

    Declaration
    public static IReadOnlyList<HashSet<T>> Compute<T>(IEnumerable<T> vertices, Func<T, IEnumerable<T>> getSuccessors)
    Parameters
    Type Name Description
    IEnumerable<T> vertices

    The vertices in a graph.

    Func<T, IEnumerable<T>> getSuccessors

    A function that takes a vertex in a graph and computes its successors.

    Returns
    Type Description
    IReadOnlyList<HashSet<T>>

    A list of strongly connected components.

    Type Parameters
    Name Description
    T

    The type of a vertex.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX