Calculate the portion of reachbility matrix on demand.