An investigator can start from any house. He can only travel along the routes as shown by the lines and has to investigate at least once each path. Each of the paths are 1 km long. What is the least distance (in km) he needs to travel to make sure he has investigated all places?