Generic line graph