line graph functional