Adding the graph structure for explain. Updated the add index functional...

Added the graph structure for explain. Updated the add index functionality.