# Enumeration CycleMode

GoJS® Diagramming Components
version 3.0.7
by Northwoods Software®

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

`since`

3.0

#####
Index

### Enumeration Members

All
DestinationTree
NotDirected
NotUndirected
SourceTree

## Enumeration Members

### All

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

### DestinationTree

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

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

### NotUndirected

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

### SourceTree

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.

Copyright © 1998-2024 by Northwoods Software Corporation.