Retrieve the node that has the specified local id, or return null.

Note: The default implementation uses iterator.

Property definitions

neo4j $ NeoNodeCollection :: get_or_null
	# Retrieve the node that has the specified local id, or return `null`.
	#
	# Note: The default implementation uses `iterator`.
	fun get_or_null(id: ID_TYPE): nullable NeoNode do
		for n in self do
			if id_of(n) == id then return n
		end
		return null
	end
lib/neo4j/graph/graph.nit:64,2--72,4

neo4j $ SequentialNodeCollection :: get_or_null
	redef fun get_or_null(id) do
		if id < 0 or id > nodes.length then return null
		return nodes[id]
	end
lib/neo4j/graph/sequential_id.nit:61,2--64,4