Wiener index of generalized 4-stars and of their quadratic line graphs

We construct several infinite families of trees which have a unique branching vertex of degree 4 and whose Wiener index equals the Wiener index of their quadratic line graph. This solves an open problem of Dobrynin and Mel’nikov.