The example in the wiki is a bit over-simplified and is designed to convey the concept of vertex-centric indices. On its own, it might not be he best thing to use for purposes of understanding how to model a schema in general. That said, I think the model still makes basic sense (at least in that light).
If the answer is that the edge connects different tweets that a user has tweeted, then one edge connects more than one node.
I'm not sure where you see that in the code. I see 4 user vertices who are doing the tweeting (v1000, v10000, etc). The for loop iterates each user and adds tweet edges for each. On each creation of an edge a new vertex is created to represent the tweet. Perhaps I'm misunderstanding you but in that sense an edge does not connect more than two vertices. It only connects from user vertex into tweet vertex.