Add a node to the graph

If the graph already contains a node with that ID, it will be replaced.

Property definitions

dot $ DotGraph :: add
	# Add a node to the graph
	#
	# If the graph already contains a node with that ID, it will be replaced.
	fun add(element: DotElement) do
		nodes[element.id] = element
	end
lib/dot/dot.nit:113,2--118,4