Adding graph element