New: Prim's Algorithm
     Bellmand-Ford algorithm
    Function to check if a graph G contains a vertex V