Qunee for HTML5 - English : Graph Model

Internal system, the element is saved at the graph model (Q.GraphModel). This model is used for management of element collection, for unified monitoring of element events, and providing support to traversal of tree graph and network graph 

Build graph model

The type of graph model is Q.GraphModel, which is automatically created in Graph component 

var graph = new Q.Graph(canvas);
var model = graph.graphModel; 
model.add(new Q.Node());

It can also be created independently. And then it will be transferred to the graph component by formation parameter 

var model = new Q.GraphModel();
model.add(new Q.Node());
var graph = new Q.Graph(canvas, model);