This diagram shows the possible paths (in km) for laying gas pipes between various locations. Gas is to be supplied from one location. Any one of the locations can be the source of the supply. What is the minimum total length of the pipes required to provide gas to all the locations?