Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Programatically link creation and validation

$
0
0

@jose_vi wrote:

Hi,

I have a diagram with some nodes, and programatically i create the links between the nodes (by pushing them to linkDataArray).

The diagram is showing the links fine, but they are generating cycles, and this is not desirable at my design. Is there any way to check (before creating the link, checking if it creates cycle), or remove the links that introduces cycles?

Something like this:

if(this.diagram.isCycle(link)){
   this.linkDataArray.push(link);
}

Thanks in advance.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles