End-to-end length of polymer (molecule)

Dear LAMMPS,

Can one obtain the end-to-end length of a polymer using LAMMPS directly?

Thanks in advance

Sam Edgecombe

There is compute gyration and gyration/molecule.
If you want literally the distance between the 2
monomers at the end of each chain, a question
would be, how does LAMMPS identify what those
2 monomers are for each polymer?

Steve