Rewrote score equations function for the general mied graphs. Haven't tested it.