Straighten the vessel segments in a network

Hi All,

I have got a network of blood vessels and I’m looking for ways to straighten each segment/branch in the network. I found some discussions on straightening single segments, I’m not sure if it is possible to straighten segments in a network.

Any suggestions on how to do this in Slicer, if possible, will be really helpful.

Any suggestions on how to proceed will be highly useful.