returns all dependency loops in the chart
array | an array of dependency loops found in gantt |
Available only in PRO Edition
var cycles = gantt.findCycles();
This functionality is available in the PRO edition only.
The method requires the auto_scheduling plugin to be activated.
Each element of the cycles array is a group of tasks and links which make a loop.
[
{
tasks: [//ids of tasks connected in a loop],
links: [//ids of links connected in a loop]
},
{
tasks: [...],
links: [...]
}
]
Have a look at the example below:
The gantt.findCycles method will return the following value:
[
{
tasks: ["10", "12"],
links: ["1", "2"]
}
]
added in version 4.1
Back to top