I want to find a way to figure out what are the most closest neighbors in a Gray Code sequence.
For example I have 010110, and I need to figure out which are its neighbors.
I can apply the binary reflection algorithm from Wikipedia, I know. I did it and found 010010 and 010111, but what if I have 0101100101010 instead of 010110?
In all Gray codes, successive values differ in only one bit. Here are two different (cyclic) Gray codes: $$000,001,011,010,110,111,101,100$$ and $$000,001,011,111,101,100,110,010$$ The first is the standard binary reflected Gray code. The Wikipedia article you link to describes a method to convert standard binary reflected Gray code representation of $n$ to natural binary representation of $n$, and also how to convert from natural binary representation of $n$ to standard binary reflected Gray code representation of $n$.
So, given Gray code
0101100101010which is the standard binary reflected Gray code representation of some integer $n$ (you don't, as yet, know what $n$ is)0101100101010in the standard binary reflected Gray code.