We applied the Ramsey analysis to the sets of points belonging to Riemannian manifolds. The points are connected with two kinds of lines: geodesic and non-geodesic. This interconnection between the points is mapped into the bi-colored, complete Ramsey graph. The selected points correspond to the vertices of the graph, which are connected with the bi-colored links. The complete bi-colored graph containing six vertices inevitably contains at least one mono-colored triangle; hence, a mono-colored triangle, built of the green or red links, i.e., non-geodesic or geodesic lines, consequently appears in the graph. We also considered the bi-colored, complete Ramsey graphs emerging from the intersection of two Riemannian manifolds. Two Riemannian manifolds, namely (M1,g1) and (M2,g2), represented by the Riemann surfaces which intersect along the curve (M1,g1)∩(M2,g2)=ℒ were addressed. Curve ℒ does not contain geodesic lines in either of the manifolds (M1,g1) and (M2,g2). Consider six points located on the ℒ: {1,…6}⊂ℒ. The points {1,…6}⊂ℒ are connected with two distinguishable kinds of the geodesic lines, namely with the geodesic lines belonging to the Riemannian manifold (M1,g1)/red links, and, alternatively, with the geodesic lines belonging to the manifold (M2,g2)/green links. Points {1,…6}⊂ℒ form the vertices of the complete graph, connected with two kinds of links. The emerging graph contains at least one closed geodesic line. The extension of the theorem to the Riemann surfaces of various Euler characteristics is presented.