Detection and quantification of entanglement in multipartite quantum systems using weighted graph and bloch representation of states