fits random graph to 3-motif counts using gradient descent