TODO finish block graph