Build multiple lines from dependency data (looks a bit wonky still)