Pack Graph logic implemented