Connect components with lines