Create graphPrim.cpp

O(n^2) complexity