Added function for generating random weighted digraphs