How to connect neuron in small world network graph?

Not getting any value from the class
I have a Hodgkin Huxley type neurons network of 1000 neurons. I want to connect them in form of small world network type connection.

I’m not quite sure what you mean by this.

Brian does not have any built-in support for small-world topologies. You’d have to use another library to create the connection pattern, or write a function yourself that does it. You can then take the generated source and target indices and hand them over to the Synapses.connect function:

syn.connect(i=sources, j=targets)

In case your library/code creates the connections as a matrix instead of as a list of source and target indices, you can use the technique described in the documentation to convert between the two representations: Synapses — Brian 2 2.5.1 documentation