Spatiotemporal network structure among “friends of friends” reveals contagious disease process