Light High Efficiency Graph Component

Qunee Developer Guide

Graphic Set Membership

Graphic object supports the set membership. Child may be added or deleted. Or parent node can be modified. The graphics can form a relation of tree-form graph in GraphModel.


Set up the set membership of nodes

var node = graph.createNode();
var child = graph.createNode("child");
child.parent = node;
//or use#addChild(...)