add links method, for graph export