GoJS API
/ to search
    Preparing search index...

    Enumeration CycleMode

    This enumeration specifies how the Diagram should handle cycles in graphs. Used for Diagram.validCycle.

    since

    3.0

    Index

    Enumeration Members

    All: 1

    This value states that there are no restrictions on making cycles of links.

    DestinationTree: 5

    This value states that any number of destination links may go out of a node, but at most one source link may come into a node, and there are no directed cycles.

    This value assumes that the graph does not already have any cycles in it, or else the behavior may be indeterminate.

    NotDirected: 2

    This value states that a valid link from a node will not produce a directed cycle in the graph.

    NotUndirected: 4

    This value states that a valid link from a node will not produce an undirected cycle in the graph.

    SourceTree: 6

    This value states that any number of source links may come into a node, but at most one destination link may go out of a node, and there are no directed cycles.

    This value assumes that the graph does not already have any cycles in it, or else the behavior may be indeterminate.