A complex network approach to study the extreme precipitation patterns in a river basin