Add Edge Probability Calculation and Edge Initialization.