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
Operation result is: 2