add one attribute--zorder for node to  draw nodes by it's layer