Ramification of stream networks