I am trying an inline math expression on latex
the graph is almost surely connected ($\lim_{n \to \infty} \mathrm{P}(G(n,p) \text{is connected}) \to 1 $
and it outputs the subscript term next to "lim". How do I get it under "lim" like in eqn (6) while using inline.


