graph working finally
graph working finally