graph: added sm intermediate local for readability. fixed porting bugs.
graph: added sm intermediate local for readability. fixed porting bugs.

theonlydude/RandomMetroidSolver,theonlydude/RandomMetroidSolver,theonlydude/RandomMetroidSolver,theonlydude/RandomMetroidSolver,theonlydude/RandomMetroidSolver