Correcting311 invalid links in graph

Should fix the graph-specific portion of #311 (this means the link-creation for ontology-nodes in the graph view).