Miloš Savić, Mirjana Ivanović, Miloš Radovanović

Slides:



Advertisements
Similar presentations
Software Systems as Complex Networks by Hema Jayaprakash.
Advertisements

Network biology Wang Jie Shanghai Institutes of Biological Sciences.
Traffic-driven model of the World-Wide-Web Graph A. Barrat, LPT, Orsay, France M. Barthélemy, CEA, France A. Vespignani, LPT, Orsay, France.
Analysis and Modeling of Social Networks Foudalis Ilias.
VL Netzwerke, WS 2007/08 Edda Klipp 1 Max Planck Institute Molecular Genetics Humboldt University Berlin Theoretical Biophysics Networks in Metabolism.
Analysis of Social Media MLD , LTI William Cohen
Information Networks Generative processes for Power Laws and Scale-Free networks Lecture 4.
Connected Components in Software Networks Miloš Savić, Mirjana Ivanović, Miloš Radovanović Department of Mathematics and Informatics Faculty of Science.
4. PREFERENTIAL ATTACHMENT The rich gets richer. Empirical evidences Many large networks are scale free The degree distribution has a power-law behavior.
Weighted networks: analysis, modeling A. Barrat, LPT, Université Paris-Sud, France M. Barthélemy (CEA, France) R. Pastor-Satorras (Barcelona, Spain) A.
School of Information University of Michigan SI 614 Random graphs & power law networks preferential attachment Lecture 7 Instructor: Lada Adamic.
1 Evolution of Networks Notes from Lectures of J.Mendes CNR, Pisa, Italy, December 2007 Eva Jaho Advanced Networking Research Group National and Kapodistrian.
Topology Generation Suat Mercan. 2 Outline Motivation Topology Characterization Levels of Topology Modeling Techniques Types of Topology Generators.
Complex Networks Third Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
Trends in Object-Oriented Software Evolution: Investigating Network Properties Alexander Chatzigeorgiou George Melas University of Macedonia Thessaloniki,
Emergence of Scaling in Random Networks Barabasi & Albert Science, 1999 Routing map of the internet
Directional triadic closure and edge deletion mechanism induce asymmetry in directed edge properties.
Networks. Graphs (undirected, unweighted) has a set of vertices V has a set of undirected, unweighted edges E graph G = (V, E), where.
Network Models Social Media Mining. 2 Measures and Metrics 2 Social Media Mining Network Models Why should I use network models? In may 2011, Facebook.
Power law random graphs. Loose definition: distribution is power-law if Over some range of values for some exponent Examples  Degree distributions of.
Scale-free networks Péter Kómár Statistical physics seminar 07/10/2008.
Small Worlds Presented by Geetha Akula For the Faculty of Department of Computer Science, CALSTATE LA. On 8 th June 07.
The Barabási-Albert [BA] model (1999) ER Model Look at the distribution of degrees ER ModelWS Model actorspower grid www The probability of finding a highly.
Network Statistics Gesine Reinert. Yeast protein interactions.
Rivers of the World are Small-World Networks Carlos J. Anderson David G. Jenkins John F. Weishampel.
Peer-to-Peer and Grid Computing Exercise Session 3 (TUD Student Use Only) ‏
Small World Networks Somsubhra Sharangi Computing Science, Simon Fraser University.
Advanced Topics in Data Mining Special focus: Social Networks.
The structure of the Internet. How are routers connected? Why should we care? –While communication protocols will work correctly on ANY topology –….they.
Network analysis and applications Sushmita Roy BMI/CS 576 Dec 2 nd, 2014.
On Distinguishing between Internet Power Law B Bu and Towsley Infocom 2002 Presented by.
Computer Science 1 Web as a graph Anna Karpovsky.
Protus 2.0: Ontology-based semantic recommendation in programming tutoring system Presentor: Boban Vesin Boban Vesin, Aleksandra Klašnja-Milićević Higher.
Peer-to-Peer and Social Networks Random Graphs. Random graphs E RDÖS -R ENYI MODEL One of several models … Presents a theory of how social webs are formed.
Large-scale organization of metabolic networks Jeong et al. CS 466 Saurabh Sinha.
The Erdös-Rényi models
Optimization Based Modeling of Social Network Yong-Yeol Ahn, Hawoong Jeong.
Information Networks Power Laws and Network Models Lecture 3.
(Social) Networks Analysis III Prof. Dr. Daning Hu Department of Informatics University of Zurich Oct 16th, 2012.
IEEE P2P, Aachen, Germany, September Ad-hoc Limited Scale-Free Models for Unstructured Peer-to-Peer Networks Hasan Guclu
LANGUAGE NETWORKS THE SMALL WORLD OF HUMAN LANGUAGE Akilan Velmurugan Computer Networks – CS 790G.
Clustering of protein networks: Graph theory and terminology Scale-free architecture Modularity Robustness Reading: Barabasi and Oltvai 2004, Milo et al.
Science: Graph theory and networks Dr Andy Evans.
Complex Networks First Lecture TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA TexPoint fonts used in EMF. Read the.
Part 1: Biological Networks 1.Protein-protein interaction networks 2.Regulatory networks 3.Expression networks 4.Metabolic networks 5.… more biological.
Emergence of Scaling and Assortative Mixing by Altruism Li Ping The Hong Kong PolyU
Social Network Analysis Prof. Dr. Daning Hu Department of Informatics University of Zurich Mar 5th, 2013.
Class 10: Introduction to CINET Using CINET for network analysis and visualization Network Science: Introduction to CINET 2015 Prof. Boleslaw K. Szymanski.
Complex Networks Measures and deterministic models Philippe Giabbanelli.
Physics of Flow in Random Media Publications/Collaborators: 1) “Postbreakthrough behavior in flow through porous media” E. López, S. V. Buldyrev, N. V.
Neural Network of C. elegans is a Small-World Network Masroor Hossain Wednesday, February 29 th, 2012 Introduction to Complex Systems.
Percolation Processes Rajmohan Rajaraman Northeastern University, Boston May 2012 Chennai Network Optimization WorkshopPercolation Processes1.
Yongqin Gao, Greg Madey Computer Science & Engineering Department University of Notre Dame © Copyright 2002~2003 by Serendip Gao, all rights reserved.
Class 9: Barabasi-Albert Model-Part I
Lecture 10: Network models CS 765: Complex Networks Slides are modified from Networks: Theory and Application by Lada Adamic.
Most of contents are provided by the website Network Models TJTSD66: Advanced Topics in Social Media (Social.
SSQSA present and future Gordana Rakić, Zoran Budimac Department of Mathematics and Informatics Faculty of Sciences University of Novi Sad
Clusters Recognition from Large Small World Graph Igor Kanovsky, Lilach Prego Emek Yezreel College, Israel University of Haifa, Israel.
Bioinformatics Center Institute for Chemical Research Kyoto University
An Effective Method to Improve the Resistance to Frangibility in Scale-free Networks Kaihua Xu HuaZhong Normal University.
Hierarchical Organization in Complex Networks by Ravasz and Barabasi İlhan Kaya Boğaziçi University.
Algorithms and Computational Biology Lab, Department of Computer Science and & Information Engineering, National Taiwan University, Taiwan Network Biology.
Cmpe 588- Modeling of Internet Emergence of Scale-Free Network with Chaotic Units Pulin Gong, Cees van Leeuwen by Oya Ünlü Instructor: Haluk Bingöl.
Models of networks (synthetic networks or generative models): Random, Small-world, Scale-free, Configuration model and Random geometric model By: Ralucca.
On SNEIPL (software networks extractor) – a part of the SSQSA back end
Department of Computer Science University of York
Network Science: A Short Introduction i3 Workshop
Peer-to-Peer and Social Networks
Modelling Structure and Function in Complex Networks
Network Science: A Short Introduction i3 Workshop
Presentation transcript:

Miloš Savić, Mirjana Ivanović, Miloš Radovanović Characteristics of Class Collaboration Networks in Large Java Software Projects Miloš Savić, Mirjana Ivanović, Miloš Radovanović Department of Mathematics and Informatics Faculty of Science University of Novi Sad

Content Class collaboration networks Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Content Class collaboration networks Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Class Collaboration Networks - Definition - Software – complex, modular, interacting system Java Class Collaboration Networks: * nodes – classes/interfaces * links – interactions among classes/interfaces Interaction ↔ Reference * Class A instantiates and/or uses objects of class B * Class A extends class B * Class A implements interface B

Class collaboration networks Class Collaboration Networks - Example - interface A { … } class B implements A { … } class C { … public void methodC(B b) { b.someMethod(); } class D extends C implements A { public B makeB() { return new B(); } C D A B

Content Class collaboration networks Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Characteristics of complex networks - Degree distribution - Node degree: number of links for the node Distribution function P(k) * probability that a randomly selected node has exactly k links Directed graph: incoming and outgoing degree distributions A E D B C

Characteristics of complex networks - Small world property - 3 Relatively short path between any two nodes L ~ ln(N) – small world phenomena L ~ lnln(N) - ultra small world phenomena 6 1 4 7 5 2 l15=2 [125] l17=4 [1346  7]

Characteristics of complex networks - Clustering coefficient - Tendency to cluster Node i - ki links to ki nodes (neighbours) - Ei – number of links between neighbours Neighbours with node i forms complete subgraph  Ci = 1 i

Content Class collaboration networks Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Mathematical models of complex networks Erdőos-Rényi /ER/ model random networks Barabási-Albert /BA/ model scale-free networks

Mathematical models of complex networks - ER model - Alg: Generate ER network Input: p – connection probability [0..1] n – number of nodes Output: ER network for (i = 1; i < n; i++) for (j = 0; j < i; j++) if (p <= rand(0, 1)) Connect(i, j);

Mathematical models of complex networks - BA model - Start with small random graph Growth * in each iteration add new node with m links Preferential attachment * new node prefers to link to highly connected nodes the probability that the new node connects to a node with k links is proportional to k

Mathematical models of complex networks - BA model - 1. The most of real/engineered networks are scale-free and can be modeled by BA model and its modifications 2. Both models can produce small world property 3. Clustering coefficient of scale-free network is much larger than in a comparable random network

Content Class collaboration network Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Network Extraction Class diagrams/JavaDoc/Source code YACCNE * Jung, JavaCC Node connecting rules 1. Class A gives an incoming link to class B if A imports B 2. Class A gives an incoming link to class B if B is in the same package as A, and A references B 3. Class A gives an incoming link to class B if A references B through it’s full package path 4. References that come outside the software system are excluded

Content Class collaboration network Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Experiments and results - Experiments - JDK, Tomcat, Ant, Lucene, JavaCC - cumulative incoming/outgoing link degree distributions - small-world coefficient - clustering coefficient Ten successive versions of Ant (from 1.5.2 to 1.7.0) - compared - can preferential attachment rule model Ant evolution?

Experiments and results - JDK - Our work (Valverde and Solé, 2003) γ[in] 2.17493 2.18 γ[out] 3.63214 3.39 Small-world coefficient 4.391 5.40 Clustering coefficient 0.453 0.225 Extraction method Source code Class diagrams

Experiments and results - In/Out Degree distributions - Class collaboration network γ[in] R2 γ[out] JDK 2.17493 0.9541 3.63214 0.9667 Ant 2.05001 0.9927 3.93654 0.9281 Tomcat 2.35234 0.9294 3.5026 0.9499 Lucene 1.98075 0.9050 4.29761 0.9028 JavaCC 2.26362 0.8946 2.20816 0.9656 γ[in] < γ[out] (except JavaCC) Same result for variuos CCNs: Myers(2003), Valverde and Solé, 2003

Experiments and results - Small world and clustering coefficient - #nodes #links l c c[rand] JDK 1878 12806 4.391 0.453 0.0036 Ant 778 3634 4.131 0.505 0.006 Tomcat 1046 4646 1.909 0.464 0.0042 Lucene 354 2221 2.2778 0.386 0.0177 JavaCC 79 274 1.22 0.437 0.0439 l[Tomcat] ~ lnln(N[Tomcat]) l[JavaCC] ~lnln(N[JavaCC]) c >> c[rand]

Experiments and results - Ant CCN Evolution - org.apache.tools.ant.BuildException (336, 63) org.apache.tools.ant.Project (220, 43) org.apache.tools.ant.Task (124, 22) 1.5.4: 536 nodes, 2241 links 1.6.0: 114 new nodes, 525 new links

Experiments and results - Ant CCN Evolution - org.apache.tools.ant.BuildException (417, 69) org.apache.tools.ant.Project (269, 44) 1.6.5: 690 nodes, 3000 links 1.7.0: 132 new nodes, 44 deleted nodes, 634 new links

Content Class collaboration network Characteristics of complex networks Mathematical models of complex networks Network extraction Experiments and results Conclusion

Conclusion Analyzed networks exhibit scale-free (or nearly scale-free) and small-world properties. The preferential attachment concept introduced in the BA model can explain Ant’s class collaboration network evolution

Miloš Savić, Mirjana Ivanović, Miloš Radovanović Characteristics of Class Collaboration Networks in Large Java Software Projects Miloš Savić, Mirjana Ivanović, Miloš Radovanović Department of Mathematics and Informatics Faculty of Science University of Novi Sad