Light High Efficiency Graph Component

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.


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

Operation result is: 2