Welcome To Mantra
  the connecting algorithm