WAW check full set instructions for write on same register.
WAR check instructions untill you encounter first write, i.e,suppose R1 register is read in any instruction. Now look down below that instruction untill you encounter the first write on R1.
RAW suppose R1 is written by instruction I1. Now all instructions below this instruction which read R1 will give RAW if value of R1 is not being changed, i.e, all instruction that read R1 read that same value written by I1 and no other instruction is modifying the value of R1 in between then its a RAW.