Which sentence contains an analogy

"The relationship between the two friends was as strong as the anchor is to a ship."