Validating RGraph.

In this task you will work on two types of RGraph; a partial RGraph; and an RGraph that contains some errors.  A sample code will be given in order to help you complete the task.

You are required to fill and complete the partial RGraph, and then validate your solution. Similarly, you are required to correct the errors in the flawed RGraph, and then validate your solution.

    1) Partial RGraph

        Partial RGraph
   
    2) Flawed RGraph

        Flawed RGraph