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.

- #connect() - connect to the image
- #disconnect() - disconnect topological relation
- #isConnected() - whether it is connected
- #getEdgeBundle() - acquire bundle edge collection

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