Connecting two elements using a line/wire mannualy : [enter image description here][1]


  [1]: https://i.stack.imgur.com/pPg04.jpg

I want that user can connect these points using a wire or line . Connection get complete when point 1,2,6 are connected other wise if he/she makes wrong connections screen show wrong connections.