I wondered if there is a way to reduce some nodes in a network. For instance, if there are two or more adjacent nodes (orange color), these nodes for my problem can be merged together as single nodes. In the figure below, nodes 41, 42, and 43 can be merged and forms a single node connected to the nodes 11 and 56. Any idea to do so?
Thanks
Best wishes
