Tree-like curves