Sample directed graph with weighted edges