expectation function

Calculate the expected adjacency matrix