Professional Documents
Culture Documents
Abstract—In this paper, we conducted an experiment for arisen in sociology, physics, and biology. It has been shown
comparison of the graphs generated by Erdős-Rényi, Barabási- that many networks have similar degree distributions [1]–
Albert, Bollobás-Riordan, Buckley–Osthus, Chung-Lu models [6]. It turned out that most real networks have degree
and a web graph constructed using real data. Twitter data have
been employed to construct social network, and C++ has been distributions that are scale-free [1]. In other words, their degree
used for network analysis as well as network visualization. It was distributions follow power law. Barabasi and Albert proposed
shown that distribution of degrees and clustering coefficient for the preferential attachment model in papers [7], [8] to fit the
this network follows the power law. A machine learning approach power law degree distribution of real web-graphs.
is used for empirical evaluation of the Erdős-Rényi, Barabási- One of the most well-known social networks is Twitter
Albert, Bollobás-Riordan, Buckley–Osthus, Chung-Lu models in
comparison to the Twitter graph. which was created in 2006. Twitter which uses its minimalist
Index Terms—social network analysis, classification, degree concept of microblogging is an online application that aims at
distribution, social graph bringing together hundreds of millions of users around the
world to express themselves. Each message (tweet) should
I. I NTRODUCTION have up to 140 characters and can be “followed” by other
One of the most important problems in the modern social users without mandatory reciprocity, coupled to a very open
sciences is the search for effective ways of summarizing application programming interface (API), which makes it an
and visualizing the data of social interactions of individuals. ideal tool for social behavior studies. In recent years, many
This provides useful information about the behavior of people researchers have studied the information dissipation which
within the communities to which they belong. Currently, the took place after such events as: an earthquake [9], political
social interaction of individuals has become possible to study demonstrations [10], [11], teachings [12] or interactions on
on the basis of data of their interactions in social networks neutral corpus [13]. These studies usually visualize the
such as Twitter, Facebook etc. The amount of data generated networks of tweets as well as mentions and retweets. Twitter
by social networks every day is huge. The analysis of such data is favored by researchers due to their availability and
data becomes more complex as the number of interacting the possibility to inspect its contents. Social network analysis
individuals and the amount of their interactions grow. metrics allow to examine and measure the influence in political
Twitter data can be easily transformed into network data. A communication or scientometry [14], [15]. The paper [16] is
social network is a set of individuals which have connections aimed to find key factors to explain clustering within a network
in pair to represent their relationship. Two individuals can whose characteristics look similar to a small world.
be considered in a relationship if there has been friendship In this paper we conducted an experiment for comparison
or common interest between them. In such type of network, of the graphs generated by Erdős-Rényi, Barabási-Albert,
an individual will be called as “node” or “vertex” and the Bollobás-Riordan, Buckley–Osthus, Chung-Lu models and a
connection will be an “edge”. In the case of Twitter network, web graph constructed using real data. Twitter data have been
which is studied in this paper, the social network will be employed to construct social network, and C++ has been used
represented by directed unweighted graph in which links stand for network analysis as well as network visualization. It was
for retweets. If someone uses Twitter’s Retweet icon then shown that distribution of degrees and clustering coefficient
their Retweet or Retweet with comment will reference the for this network follows the power law. A machine learning
tweet that they are sharing. Different types of social network approach is used for empirical evaluation of the Erdős-Rényi,
analysis metrics can be used for finding e dge d ensity, degree Barabási-Albert, Bollobás-Riordan, Buckley–Osthus, Chung-
distribution, maximum clique and maximum independent set Lu models in comparison to the Twitter graph.
in the network. This methodology allows us to visualize a
data set, presenting its elements as vertices, and observe II. M ODEL C OMPARISON M ETHODOLOGY
certain relationships between them. Studying the structure of One of the goals of the paper is to examine models for
a graph representing the data is important for understanding generating random graphs according to their suitability for
the intrinsic properties of social interaction. fitting the Twitter user graph. In this paper we will use the
Note that the last two decades have seen extensive research approach proposed in works [17], [18]. The methodology
in the area of degree distribution analysis of complex networks consists of four steps:
90
Atlantis Highlights in Computer Sciences, volume 2
91
Atlantis Highlights in Computer Sciences, volume 2
TABLE III
T HE PAIRWISE MODEL COMPARISON
model a positive coefficient a independent of the degree scale of characteristics, hence we normalize data beforehand.
and which is called initial attractiveness of a vertex. In this We use StandardScaler helper class in sklearn library
case, the algorithm for adding new vertices and edges to the to normalize data [28].
generated graph does not change, only the probabilities of After training process we pass characteristic vectors of real
holding an edge to a new vertex begin to be calculated taking Twitter subgraphs. The output of classifier is a probability that
into account the coefficient a using equation (2): the vector belongs to the class of a random graph model. The
classifier results are shown in Table III.
dHa,1
n−1 (s)+a−1
, 1 ≤ s ≤ n − 1;
P (i = s) = (a+1)n−1 (2)
a
, s = n. VI. C ONCLUSION
(a+1)n−1
92
Atlantis Highlights in Computer Sciences, volume 2
[10] M. Beguerisse-Dı́az, G. G. no Hernández, B. Vangelov, [17] N. Attar and S. Aliakbary, “Classification of complex networks based on
S. N. Yaliraki, and M. Barahona, “Interest communities similarity of topological network features,” Chaos: An Interdisciplinary
and flow roles in directed networks: the twitter network Journal of Nonlinear Science, vol. 27, no. 9, p. 091102, 2017. [Online].
of the uk riots,” Journal of The Royal Society Interface, Available: https://doi.org/10.1063/1.4997921
vol. 11, no. 101, p. 20140940, 2014. [Online]. Available: [18] T. Bläsius, T. Friedrich, M. Katzmann, A. Krohmer, and J. Striebel,
https://royalsocietypublishing.org/doi/abs/10.1098/rsif.2014.0940 “Towards a systematic evaluation of generative network models,” in
[11] A. A. Casilli and P. Tubaro, “Social media censorship in times Algorithms and Models for the Web Graph, A. Bonato, P. Prałat, and
of political unrest - a social simulation experiment with the uk A. Raigorodskii, Eds. Cham: Springer International Publishing, 2018,
riots,” Bulletin of Sociological Methodology/Bulletin de Méthodologie pp. 99–114.
Sociologique, vol. 115, no. 1, pp. 5–20, 2012. [Online]. Available: [19] M. F. Delgado, E. Cernadas, S. Barro, and D. G. Amorim, “Do we need
https://doi.org/10.1177/0759106312445697 hundreds of classifiers to solve real world classification problems?” J.
[12] C. Ullrich, K. Borau, and K. Stepanyan, “Who students interact Mach. Learn. Res., vol. 15, pp. 3133–3181, 2014.
with? a social network analysis perspective on the use of twitter in [20] K. P. Bennett and C. Campbell, “Support vector machines: Hype or
language learning,” in Sustaining TEL: From Innovation to Learning hallelujah?” SIGKDD Explorations, vol. 2, pp. 1–13, 2000.
and Practice, M. Wolpers, P. A. Kirschner, M. Scheffel, S. Lindstaedt, [21] R. Albert, H. Jeong, and A.-L. Barabási, “Internet: Diameter of the
and V. Dimitrova, Eds. Berlin, Heidelberg: Springer Berlin Heidelberg, world-wide web,” Nature, vol. 401, no. 6749, pp. 130–131, Sep. 1999.
2010, pp. 432–437. [22] P. Erdös and A. Rényi, “On random graphs i,” Publicationes
[13] D. Darmon, E. Omodei, and J. Garland, “Followers are not enough: Mathematicae Debrecen, vol. 6, pp. 290–297, 1959.
A multifaceted approach to community detection in online social [23] ——, “On the evolution of random graphs,” Publ. Math. Inst. Hungary.
networks,” PLOS ONE, vol. 10, no. 8, pp. 1–20, 08 2015. [Online]. Acad. Sci., vol. 5, pp. 17–61, 1960.
Available: https://doi.org/10.1371/journal.pone.0134860 [24] J. Alstott, E. Bullmore, and D. Plenz, “powerlaw: A python
[14] B. Suh, L. Hong, P. Pirolli, and E. H. Chi, “Want to be retweeted? package for analysis of heavy-tailed distributions,” PLOS ONE,
large scale analytics on factors impacting retweet in twitter network,” vol. 9, no. 1, pp. 1–11, 01 2014. [Online]. Available:
in Proceedings of the 2010 IEEE Second International Conference on https://doi.org/10.1371/journal.pone.0085777
Social Computing, ser. SOCIALCOM ’10. Washington, DC, USA: [25] B. Bollobás and O. Riordan, “The diameter of a scale-free random
IEEE Computer Society, 2010, pp. 177–184. [Online]. Available: graph,” Combinatorica, vol. 24, pp. 5–34, 2004.
https://doi.org/10.1109/SocialCom.2010.33 [26] P. G. Buckley and D. Osthus, “Popularity based random graph models
[15] S. Haustein, I. Peters, C. R. Sugimoto, M. Thelwall, and V. Larivière, leading to a scale-free degree sequence,” Discrete Mathematics,
“Tweeting biomedicine: An analysis of tweets and citations in the vol. 282, no. 1, pp. 53 – 68, 2004. [Online]. Available:
biomedical literature,” Journal of the Association for Information http://www.sciencedirect.com/science/article/pii/S0012365X03006940
Science and Technology, vol. 65, no. 4, pp. 656–669, 2014. [Online]. [27] B. Bollobás and O. Riordan, “The diameter of a scale-free random
Available: https://onlinelibrary.wiley.com/doi/abs/10.1002/asi.23101 graph,” Experimental Math, vol. 10, pp. 53–66, 2001.
[16] M. Grandjean, “A social network analysis of twitter: Mapping the digital [28] A. Gron, Hands-On Machine Learning with Scikit-Learn and
humanities community,” Cogent Arts & Humanities, vol. 3, no. 1, 2016. TensorFlow: Concepts, Tools, and Techniques to Build Intelligent
[Online]. Available: http://doi.org/10.1080/23311983.2016.1171458 Systems, 1st ed. O’Reilly Media, Inc., 2017.
93