Creating directed and weighted networks