Traffic assignment problem for a general network