There was probably a simpler method.
Formula is M = 4pi squared , radius power of 3, divided by graph theory squared