Save the specified part of the graph.

Assume that for each relationship specified, both ends are already saved or are specified in the same call to this method.

Property definitions

neo4j $ GraphStore :: save_part
	# Save the specified part of the graph.
	#
	# Assume that for each relationship specified, both ends are already saved
	# or are specified in the same call to this method.
	fun save_part(nodes: Collection[NeoNode],
			edges: Collection[NeoEdge]) is abstract
lib/neo4j/graph/graph.nit:175,2--180,42

neo4j $ Neo4jGraphStore :: save_part
	redef fun save_part(nodes, edges) do
		assert batch_max_size > 0
		fire_started
		total = nodes.length + edges.length
		done_part = 0

		save_entities(nodes)
		save_entities(edges)
		fire_done
	end
lib/neo4j/graph/graph.nit:238,2--247,4

neo4j $ JsonGraphStore :: save_part
	redef fun save_part(nodes, edges) do
		var ostream = self.ostream
		assert ostream isa Writer
		fire_started
		ostream.write(graph.to_json)
		fire_done
	end
lib/neo4j/graph/json_graph_store.nit:104,2--110,4