Consider a Bernoulli random graph where we have $n$ vertices and we fill in each edge independently with probability $p$. Let $X$ denote a random variable which uniformly draws one such Bernoulli graph. The value of $X$ is an adjacency matrix.
How can we express $\operatorname{Pr}\left[ X= x \right]$ in the form $\frac{1}{|\mathcal X|} e^{\theta s(x)}$ where $s(x) = \sum_{i<j} x_{ij}$ is the number of edges in $x$?
If $p=1/2$ then it's clear that $\operatorname{Pr}\left[ X= x \right] = \frac{1}{|\mathcal X|}$ so we must choose $\theta=0$. I am struggling to determine what it should look like for other values of $p$. I have a hunch that it'll be something like $\log \frac{1-p}{p}$ but I can't prove it.
Any help would be appreciated.