if you are comfortable with tables, just make the diagram into table...
in that case, there is only allocated matrix and need matrix but there is no Maximum demand matrix
out going edges from a process should represent remaining need resources and
incoming edges to the process should represent allocated resources
allocated need
R1 R2 R3 R1 R2 R3
P1 1 0 1 0 0 1
P2 1 1 0 0 1 1
P3 0 1 1 0 1 0
P4 0 0 0 0 1 1
---------------------------------------------------------------------------
Allocated 2 2 2
Total 2 3 2
------------------------------------------
Available 0 1 0
i can complete P3, ===> Available 0 2 1
now i can complete any processes ===> More than one safe sequence exist