Implement weighted directed edge