Hello Krishna,
I'm in your class and dealt with this exact issue
The problem as @glilienfield noted is that in GDS > 2.x it expects a graph projection. Some of the code that was provided is outdated with current versions. This is how I ultimately so...