Qunee for HTML5 - English : Basic Property of Edge

Each edge shall contain two end points, start node and end node respectively. If any one node is null, this edge will be invalid. If two nodes are the same node, this edge is looped

  • #from - start node
  • #to - end node
  • #otherNode() - another node
  • #isInvalid() - whether it is invalid
  • #isLooped() - whether it is looped

Looped edge

 For example, creates a looped edge 

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

Looped effect of edge