precompile graph