Graphs with prescribed connectivities