in-progress, finding ml estimate of graph
computes the ML estimate