graph batch insert, added multithread support