I got a river shapefile below,
and I found that there are many fragmental lines in this line shapefile, like,
and,
Most of these are located around the confluence(node), and how can I do to efficiently merge them into the nearby large line object, making whole shapefile containing only intact line segments between confluences(nodes)?