Elimintate CPGEdge to see if it improves runtime
More passing by reference
Fully remove CPGEdge class