Light High Efficiency Graph Component
en

Qunee Developer Guide

Topological Eelation of Edge

When the edge is connected to the image, the topological structure of image will change. Now the system will call the method of Edge#connect() automatically. When the edge is removed from the image, the topological relation will be disconnected automatically.

Example

var a = graph.createNode("A", -100, 0);
var b = graph.createNode("B", 100, 0);
graph.createEdge(a, b);
var edge = graph.createEdge(a, b);
alert(edge.getEdgeBundle().edges.length);

Operation result is: 2