Update linkgraph.php

linkgraph.php errored if the link ID had an underscore in it.