📜 ⬆️ ⬇️

Attempt to prove that the world is small: results

Some time ago I conducted an experiment on Habré.
It consisted in the following: I asked the habra people for their contact profile id, and I tried to link them with Pavel Durov. Some of the paths I found were rather long, and I promised to find shorter chains.
I personally shortened my chain of acquaintances to Durov to 5 handshakes. Many volunteers know each other in 3-5 handshakes.
So, publish the results: the graph.
I apologize for the coarseness of some lines: it was done in an uncomfortable situation, in a hurry and in the ancient mechanical mouse. Those who wish and are able to draw something more beautiful.

Habralyudi, Durov and I. are distinguished. As a bonus, a prominent personality is present on the graph: Victor Gusev.
In addition to the graph , you can see the found paths and links as a text file. Some harbrules are absent on the graph.
Additional objectives and conditions of the experiment were:
1. Find connections not only from habra people to Durov, but also to me and to the rest.
2. Find a few links between the two. They turned out to be Zivaka and bishop3000 , as one of the first to leave comments with their id (it was not possible to find the chain before the habrachelovek romy4). Found 12 links.
Now how to arrange all this most. Attention! There is no usability, interfaces, and no help. All As Is, with all the bugs. To understand the device can be difficult, you have to work with pens. If interested - go ahead.
First, you need to download userjs with applications. To install, you will need the php + mysql bundle installed. I, for example, have Denver.
The archive contains a piece of sql dump table, base files for direct copying (for Denver this is the path Z: \ usr \ local \ mysql5 \ data \ myparser \). The base is called myparser. The table must be renamed to friends, the attached table is just an example, a copy.
In addition, the virtual domain “priem” must be established. Those. Work files are in the Z: \ home \ priem \ www folder. The required www folder is in the archive.
And finally, the most important thing: the file myparser.js. How to put userjs for the opera, I will not write.
Initial setting. When entering a page like vkontakte.ru/friend.php?id=1234, the script checks if the user has id 1234 in the database. If there is no such page, the page is not added to the database. This is necessary for the purity of the experiment: each page viewed is linked to any other. Therefore, before starting work in the friends table, you must manually create a record of the form: Your id, friend id, friend's nickname, and then start browsing the site of his friends list. After that, the first line can be deleted. On pages with a lot of friends, long delays are possible. Personally, I recommend viewing the device script and the host part, and rewrite it all by yourself.
In order to check connections, there is a graf3.0.php script. It's simple - enter 2 id, and in the textarea list, separated by a comma id, to bypass which you have to go. The author of the Trave script, I just made a couple of important changes.
If someone still wants to know their chain of acquaintances to Durov, leave your id in the past topic (or in this, or send a personal message), maybe you will turn.

')

Source: https://habr.com/ru/post/39943/


All Articles