Java heap space indicates that your computer is not strong enough. Large graphs often overload the system’s RAM.