Added snippet for g.createLink