Write a function to determine if a given pair of vertices have a common neighbor.
Two vertices \( A \) and \( B \) have a common neighbor if for some vertex \( C \), the graph contains edge between (\( A \) and \( C \)) and (\( B \) and \( C \)). public boolean haveCommonNeighbor(String s1, String s2){ |