Got rid of a few compiler warnings.
Wrote the optimized graph product routine, need to write the wrapper routine and test it