Hello Guys, How are you all? Hope You all Are Fine. Today I am simply trying to draw graph using networkx But I am facing following error in my code **Message=random_state_index is incorrect** **in python**. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

## How random_state_index is incorrect in networkx Error Occurs ?

I am simply trying to draw graph using networkx But I am facing following error in my code.

`Message=random_state_index is incorrect`

## How To Solve random_state_index is incorrect in networkx Error ?

##### How To Solve random_state_index is incorrect in networkx Error ?

To Solve random_state_index is incorrect in networkx Error This problem is solved in latest version of

**decorator 5.0.9**. Just upgrade your decorator to decorator 5.0.9. Second solution This error occurs because of`decorator`

module. So that just downgrade`decorator`

version and your issue will be solved. Downgrade matplotlib version to 2.2.3 and decorator to 4 solve problem.##### random_state_index is incorrect in networkx

To Solve random_state_index is incorrect in networkx Error This problem is solved in latest version of

**decorator 5.0.9**. Just upgrade your decorator to decorator 5.0.9. Second solution This error occurs because of`decorator`

module. So that just downgrade`decorator`

version and your issue will be solved. Downgrade matplotlib version to 2.2.3 and decorator to 4 solve problem.

## Solution 1: Upgrade decorator version

This problem is solved in latest version of **decorator 5.0.9**. Just upgrade your decorator to decorator 5.0.9.

## Solution 2: Downgrade decorator

This error occurs because of `decorator`

module. So that just downgrade `decorator`

version and your issue will be solved. Downgrade matplotlib version to 2.2.3 and decorator to 4 solve problem.

**Summary**

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

**Also, Read**