Why do I get an OutOfMemoryError injecting data?
You are most likely creating too many new nodes, relationships and properties in a single transaction. Try to split the injection in more than one transaction. If you still get OutOfMemoryError it is probably because you are not calling finish() on the top-level transaction. It can also be that you have too big transactions.