Ising model simulation in directed lattices and networks