A line graph generator