GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutLayeredDigraph Class / GreedyCycleRemovalFindSource Method
In This Topic
    GreedyCycleRemovalFindSource Method
    In This Topic
    Finds a source node in the network. A node is considered a sink node if it is valid and all of its successors are invalid. A valid node with no successors is vacously a source. Returns null if no valid source node exists. Used by GreedyCycleRemoval.
    Syntax
    protected virtual GoLayoutLayeredDigraphNode GreedyCycleRemovalFindSource( 
       GoLayoutLayeredDigraphNetwork network
    )

    Parameters

    network

    Return Value

    Returns a source node in the network or null if no sources exist
    See Also