Optimize the collection, possibly by rewritting it.

The local ID of the elements may be changed by this method.

Property definitions

neo4j $ NeoNodeCollection :: compact
	# Optimize the collection, possibly by rewritting it.
	#
	# The local ID of the elements may be changed by this method.
	fun compact do end
lib/neo4j/graph/graph.nit:151,2--154,19

neo4j $ SequentialNodeCollection :: compact
	redef fun compact do
		var i = iterator

		nodes = new Array[nullable NeoNode]
		for n in i do
			nodes.add n
			id_of(n) = nodes.length
		end
	end
lib/neo4j/graph/sequential_id.nit:107,2--115,4