Solution of Assignment Problems by Directed Graphs