SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
Visualizing Scale Free Network
with the help of BA and FR
algorithm
By,
Harshit Srivastava
D03942013
Start
• As in the question number of nodes and the mean average distribution is
been defined as 500 and 2.75 respectively.
• Therefore, we can calculate number of edges in an undirected graph which
leads to 500*2.75/2=688.
• Now after knowing nodes and edges we can preferentially draw a BA
model which can be indirectly said as no growth model as edges are
already been defined.
• As we know BA model shows, network grows with new nodes that enter
the network subsequently.
• With a condition that nodes that have more links will be preferred every
time while network grows.
Algorithm Steps
• Start with a limited number of initial
nodes
• At each step, add a new node that has
m edges that link to m existing nodes
in the system
• When choosing the nodes to which to
attach, assume a probability P for a
node i proportional to the number ki
of links already attached to it
• After t steps, the network will have
n=t+m0 nodes and M=mt edges
0m
0mm 


j
j
i
i
k
k
kP )(
mtM
mtn

 0
Distribution Algorithm
• Then for finding distribution just,
• Initially find how many connection each node has.
• Initialize variable that will hold how many nodes have each degree.
• This variable will be used to create a list of possible degrees a node
can have
• Dismantle the degrees with no connectivity
• Find the last non zero element.
• Plot these variables in respect of connectivity.
Circular Layout (o/p) of 500 nodes and 688
edges
Degree
Freq.
Circular layout in which darker colour represent more
no. of degree and lightest represent least degree
The degree of distribution will be as given 2.75
Reinhold Algorithm View
• This is forced based algorithm,
based for graph layout.
• Force based means it treats each
vertex and edge as if it were a
physical object whose position is
influenced by force.
• For example: in this algorithm
each vertex can act as electron
and each edge as a spring- the
electrons all repel each other,
while spring pull together.
FR layout in which darker colour represent more no.
of degree and lightest represent least degree
Algorithm Steps
• Define the width and length of the layout which is to be used.
• Draw a graph G(V,E) randomly, and repeat it M times.
• Then calculate repulsive forces on each vertex/electron,
• Move the vertex will be having two information: position and displacement.
• i.e., calculation for the difference vector between the positions of the two
vertices
• Now, calculate attractive forces,
• On edges/springs
• Have the same property as vector and difference in positon can be calculated.
• Basically this algorithm works as, on atomic particles exerting forces
from one another, where attractive and repulsive forces are defined
as 𝑓𝑎 𝑑 =
𝑑2
𝑘
and 𝑓𝑟 𝑑 = −
𝑘2
𝑑
, 𝑤ℎ𝑒𝑟𝑒 d is defined as length
of vertex or distance between two vertices and k is derived as optimal
distance between vertices and written as,
• k= 𝑎𝑟𝑒𝑎/𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑣𝑒𝑟𝑡𝑖𝑐𝑒𝑠
• This algorithm is basically included in many packages and tools to
visualize network model.(igraph, Tulip, Graphviz, Gephi)
• If we look into this model we will observe the average(shortest) path
is around 5.27 and highest degree of node is 14.
• The number of shortest paths are 187062
• This shortest path is calculated by 𝑙 =
𝑙𝑜𝑔𝑁
𝑙𝑜𝑔𝑙𝑜𝑔𝑘
, where k is degree of node
Now to filter Giant Component
• We will initially find the number of giant components and will then filter
them out.
• To find them we will initially find the probability of an edge between two
attracted connections.
• Find the number of nodes compose a giant connection which came around
69 nodes and 5 edges.
• Basically we had 500 nodes and 688 edges initially after filtering giant
components the node was left with 431(86.2% visible) nodes with 684(
99% visible) edges.
• Which lead to increase the average degree of distribution to 3.19, with the
change in average path 187056 and diameter same as 13.
After removing Giant Components
Degree
Freq.FR layout in which darker colour represent highest
degree and lightest represent least degree
After filtering Giant component the degree of
distribution increased to 3.19
Average Degree of Distribution
• In analysing this network we have a
node of highest degree 14(pink
colour) and lowest as usual is 1
(yellow).
• So, according to question if we
remove the highest degree node
Final Network View after Removing Highest
Degree
• There would not much change in
nodes as only 3 were removed but
will observe the edges will
decrease to 673.
• We will observe there would be
not so much change in the network
as average degree is around 3.14.
• But there would be no change in
the diameter of the network.
• Average path length increased to
5.37 with decrease in number of
shortest path to 184470 FR layout in which darker colour represent highest
degree and lightest represent least degree
Degree
Freq.
Conclusion
• In this model we have observed that the structure has a phenomena
of attractiveness in which rich get richer or the winner takes it all.
• In extreme case it can be said as monopolistic network.
• In this network if we compare and say that it is contagious network
as many hubs will pass massively to connected multiple nodes.
• We can say this scale free network remains nearly same as new nodes
are added or removed.
References
• Barabási, Albert-László and Réka Albert, "Emergence of scaling in
random networks", Science, 286:509-512, October 15, 1999
• Fruchterman, T. M. J., & Reingold, E. M. (1991). Graph Drawing by
Force-Directed Placement. Software: Practice and Experience, 21(11)
• Tools used iGraph, Gephi and Matlab.
Thank you
Algorithm
If we have number of nodes and initial number of nodes 𝑚0, where minimum degree 1 ≤ 𝑑 ≤ 𝑚0,
therefore to get scale free multigraph 𝑖. 𝑒. , 𝐺(0….N-1, E),
1. Make a clique for m random element of graph.
2. Add this element to a processed list L.
3. Take one node, j at random from the graph G. Set 𝑃 = (𝑘(𝑗)/𝑆𝑈𝑀(𝑘_𝑡 𝑎
))
4. Pick a real number R uniformly at random between 0 and 1.
5. If P>R then add j to i’s adjacency list.
6. Repeat steps 4 and 6 until I has m nodes in its adjacency list.
7. Add i to the adjacency list of each node in its adjacency list.
8. Add i to the graph.
9. Repeat steps 3-9 until there are N nodes in the graph.
*Where K(j) is the degree of the node j in the graph G and k_t is twice the number of edges ( the
total number of degrees) in the graph.

Más contenido relacionado

La actualidad más candente

Machine Learning in Bioinformatics
Machine Learning in BioinformaticsMachine Learning in Bioinformatics
Machine Learning in Bioinformatics
butest
 
Analysis of gene expression
Analysis of gene expressionAnalysis of gene expression
Analysis of gene expression
Tapeshwar Yadav
 
The European Nucleotide Archive
The European Nucleotide ArchiveThe European Nucleotide Archive
The European Nucleotide Archive
EBI
 
Lecture 3 gene cloning strategies
Lecture 3 gene cloning strategiesLecture 3 gene cloning strategies
Lecture 3 gene cloning strategies
Ishah Khaliq
 

La actualidad más candente (20)

Bioinformatics and Drug Discovery
Bioinformatics and Drug DiscoveryBioinformatics and Drug Discovery
Bioinformatics and Drug Discovery
 
Deep learning for genomics: Present and future
Deep learning for genomics: Present and futureDeep learning for genomics: Present and future
Deep learning for genomics: Present and future
 
Errors and Limitaions of Next Generation Sequencing
Errors and Limitaions of Next Generation SequencingErrors and Limitaions of Next Generation Sequencing
Errors and Limitaions of Next Generation Sequencing
 
Machine Learning in Bioinformatics
Machine Learning in BioinformaticsMachine Learning in Bioinformatics
Machine Learning in Bioinformatics
 
Challenges and opportunities in personal omics profiling
Challenges and opportunities in personal omics profilingChallenges and opportunities in personal omics profiling
Challenges and opportunities in personal omics profiling
 
Deep learning based multi-omics integration, a survey
Deep learning based multi-omics integration, a surveyDeep learning based multi-omics integration, a survey
Deep learning based multi-omics integration, a survey
 
An introduction to illumina sequencing
An introduction to illumina sequencingAn introduction to illumina sequencing
An introduction to illumina sequencing
 
BITS: UCSC genome browser - Part 1
BITS: UCSC genome browser - Part 1BITS: UCSC genome browser - Part 1
BITS: UCSC genome browser - Part 1
 
String.pptx
String.pptxString.pptx
String.pptx
 
Comparative genomics in eukaryotes, organelles
Comparative genomics in eukaryotes, organellesComparative genomics in eukaryotes, organelles
Comparative genomics in eukaryotes, organelles
 
Whole Genome Analysis
Whole Genome AnalysisWhole Genome Analysis
Whole Genome Analysis
 
Analysis of gene expression
Analysis of gene expressionAnalysis of gene expression
Analysis of gene expression
 
artificial neural network-gene prediction
artificial neural network-gene predictionartificial neural network-gene prediction
artificial neural network-gene prediction
 
Next Generation Sequencing
Next Generation SequencingNext Generation Sequencing
Next Generation Sequencing
 
Ab Initio Protein Structure Prediction
Ab Initio Protein Structure PredictionAb Initio Protein Structure Prediction
Ab Initio Protein Structure Prediction
 
Phage display technology
Phage display technologyPhage display technology
Phage display technology
 
The European Nucleotide Archive
The European Nucleotide ArchiveThe European Nucleotide Archive
The European Nucleotide Archive
 
Metagenomic analysis
Metagenomic analysisMetagenomic analysis
Metagenomic analysis
 
Lecture 3 gene cloning strategies
Lecture 3 gene cloning strategiesLecture 3 gene cloning strategies
Lecture 3 gene cloning strategies
 
Future trends in synthetic biology
Future trends in synthetic biology Future trends in synthetic biology
Future trends in synthetic biology
 

Destacado

The law of requisite variety dilts
The law of requisite variety diltsThe law of requisite variety dilts
The law of requisite variety dilts
John Gilmer
 
Soft systems methogology
Soft systems methogologySoft systems methogology
Soft systems methogology
Claudia Ribeiro
 
Outcomes Over Process : Mike Atherton : Collaborate Bristol
Outcomes Over Process : Mike Atherton : Collaborate BristolOutcomes Over Process : Mike Atherton : Collaborate Bristol
Outcomes Over Process : Mike Atherton : Collaborate Bristol
Nomensa
 
Introduction to the General Theory of Relativity
Introduction to the General Theory of RelativityIntroduction to the General Theory of Relativity
Introduction to the General Theory of Relativity
Arpan Saha
 

Destacado (20)

Simulation of Scale-Free Networks
Simulation of Scale-Free NetworksSimulation of Scale-Free Networks
Simulation of Scale-Free Networks
 
Scale-Free Networks to Search in Unstructured Peer-To-Peer Networks
Scale-Free Networks to Search in Unstructured Peer-To-Peer NetworksScale-Free Networks to Search in Unstructured Peer-To-Peer Networks
Scale-Free Networks to Search in Unstructured Peer-To-Peer Networks
 
Scaling the API Economy - with Scale-Free Networks API Days Keynote from Laye...
Scaling the API Economy - with Scale-Free Networks API Days Keynote from Laye...Scaling the API Economy - with Scale-Free Networks API Days Keynote from Laye...
Scaling the API Economy - with Scale-Free Networks API Days Keynote from Laye...
 
Network theory
Network theoryNetwork theory
Network theory
 
Optimism, Possibility & Probability
Optimism, Possibility & ProbabilityOptimism, Possibility & Probability
Optimism, Possibility & Probability
 
An Introduction to Networks
An Introduction to NetworksAn Introduction to Networks
An Introduction to Networks
 
The law of requisite variety dilts
The law of requisite variety diltsThe law of requisite variety dilts
The law of requisite variety dilts
 
Soft systems methogology
Soft systems methogologySoft systems methogology
Soft systems methogology
 
Analyst Helper. Training, Investigation and Analysis based on structured thin...
Analyst Helper. Training, Investigation and Analysis based on structured thin...Analyst Helper. Training, Investigation and Analysis based on structured thin...
Analyst Helper. Training, Investigation and Analysis based on structured thin...
 
A.2 se and sd
A.2 se  and sdA.2 se  and sd
A.2 se and sd
 
Outcomes Over Process : Mike Atherton : Collaborate Bristol
Outcomes Over Process : Mike Atherton : Collaborate BristolOutcomes Over Process : Mike Atherton : Collaborate Bristol
Outcomes Over Process : Mike Atherton : Collaborate Bristol
 
Introduction to soft systems methodology workshop
Introduction to soft systems methodology workshopIntroduction to soft systems methodology workshop
Introduction to soft systems methodology workshop
 
Structured UX Thinking : Jon Fisher
Structured UX Thinking : Jon FisherStructured UX Thinking : Jon Fisher
Structured UX Thinking : Jon Fisher
 
Einstein's theory of general relativity
Einstein's theory of general relativityEinstein's theory of general relativity
Einstein's theory of general relativity
 
Alternative Methodologies for Systems Development
Alternative Methodologies for Systems Development Alternative Methodologies for Systems Development
Alternative Methodologies for Systems Development
 
Introduction to the General Theory of Relativity
Introduction to the General Theory of RelativityIntroduction to the General Theory of Relativity
Introduction to the General Theory of Relativity
 
Soft Systems Methodology
Soft Systems MethodologySoft Systems Methodology
Soft Systems Methodology
 
開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽開發人員不可不知的 Windows Container 容器技術預覽
開發人員不可不知的 Windows Container 容器技術預覽
 
The Rich Picture A Tool For Reasoning About Work Context
The Rich Picture   A Tool For Reasoning About Work ContextThe Rich Picture   A Tool For Reasoning About Work Context
The Rich Picture A Tool For Reasoning About Work Context
 
Lecture on Statistics 1
Lecture on Statistics 1Lecture on Statistics 1
Lecture on Statistics 1
 

Similar a Scale free network Visualiuzation

CSA 3702 machine learning module 3
CSA 3702 machine learning module 3CSA 3702 machine learning module 3
CSA 3702 machine learning module 3
Nandhini S
 

Similar a Scale free network Visualiuzation (20)

Mathematics Research Paper - Mathematics of Computer Networking - Final Draft
Mathematics Research Paper - Mathematics of Computer Networking - Final DraftMathematics Research Paper - Mathematics of Computer Networking - Final Draft
Mathematics Research Paper - Mathematics of Computer Networking - Final Draft
 
Unit 2 ml.pptx
Unit 2 ml.pptxUnit 2 ml.pptx
Unit 2 ml.pptx
 
PR-155: Exploring Randomly Wired Neural Networks for Image Recognition
PR-155: Exploring Randomly Wired Neural Networks for Image RecognitionPR-155: Exploring Randomly Wired Neural Networks for Image Recognition
PR-155: Exploring Randomly Wired Neural Networks for Image Recognition
 
Sess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptxSess07 Clustering02_KohonenNet.pptx
Sess07 Clustering02_KohonenNet.pptx
 
Convolutional neural networks
Convolutional neural networksConvolutional neural networks
Convolutional neural networks
 
CNN.pptx
CNN.pptxCNN.pptx
CNN.pptx
 
CSA 3702 machine learning module 3
CSA 3702 machine learning module 3CSA 3702 machine learning module 3
CSA 3702 machine learning module 3
 
Neural
NeuralNeural
Neural
 
Artificial neural networks
Artificial neural networksArtificial neural networks
Artificial neural networks
 
NS-CUK Seminar: H.E.Lee, Review on "Structural Deep Embedding for Hyper-Netw...
NS-CUK Seminar: H.E.Lee,  Review on "Structural Deep Embedding for Hyper-Netw...NS-CUK Seminar: H.E.Lee,  Review on "Structural Deep Embedding for Hyper-Netw...
NS-CUK Seminar: H.E.Lee, Review on "Structural Deep Embedding for Hyper-Netw...
 
Magnetic field of a straight wire official.nb
Magnetic field of a straight wire official.nbMagnetic field of a straight wire official.nb
Magnetic field of a straight wire official.nb
 
Random graph models
Random graph modelsRandom graph models
Random graph models
 
201907 AutoML and Neural Architecture Search
201907 AutoML and Neural Architecture Search201907 AutoML and Neural Architecture Search
201907 AutoML and Neural Architecture Search
 
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor NetworksA Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
A Virtual Infrastructure for Mitigating Typical Challenges in Sensor Networks
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Space time & power.
Space time & power.Space time & power.
Space time & power.
 
representation.pptx
representation.pptxrepresentation.pptx
representation.pptx
 
Energy Efficient Power Failure Diagonisis For Wireless Network Using Random G...
Energy Efficient Power Failure Diagonisis For Wireless Network Using Random G...Energy Efficient Power Failure Diagonisis For Wireless Network Using Random G...
Energy Efficient Power Failure Diagonisis For Wireless Network Using Random G...
 
Learning multifractal structure in large networks (Purdue ML Seminar)
Learning multifractal structure in large networks (Purdue ML Seminar)Learning multifractal structure in large networks (Purdue ML Seminar)
Learning multifractal structure in large networks (Purdue ML Seminar)
 
Lecture 5 - Qunatifying a Network.pdf
Lecture 5 - Qunatifying a Network.pdfLecture 5 - Qunatifying a Network.pdf
Lecture 5 - Qunatifying a Network.pdf
 

Más de Harshit Srivastava

Más de Harshit Srivastava (20)

Baseband processor final rev
Baseband processor final revBaseband processor final rev
Baseband processor final rev
 
Introduction to intel galileo board gen2
Introduction to intel galileo board gen2Introduction to intel galileo board gen2
Introduction to intel galileo board gen2
 
Impromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherImpromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and other
 
Prediction approach in predicting next user choice
Prediction approach in predicting next user choicePrediction approach in predicting next user choice
Prediction approach in predicting next user choice
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Emic Effects on controlling automobile safety
Emic Effects on controlling automobile safety Emic Effects on controlling automobile safety
Emic Effects on controlling automobile safety
 
Emic effects in radio frequency instruments
Emic effects in radio frequency instrumentsEmic effects in radio frequency instruments
Emic effects in radio frequency instruments
 
Vacuum circuit breaker
Vacuum circuit breakerVacuum circuit breaker
Vacuum circuit breaker
 
Stepper motor
Stepper motorStepper motor
Stepper motor
 
Rocket
RocketRocket
Rocket
 
Roboticsin army
Roboticsin armyRoboticsin army
Roboticsin army
 
Quark particles
Quark particlesQuark particles
Quark particles
 
Power system contingencies
Power system  contingenciesPower system  contingencies
Power system contingencies
 
Power plant technology
Power plant technologyPower plant technology
Power plant technology
 
Optical tweezers
Optical tweezersOptical tweezers
Optical tweezers
 
Nuclear technology
Nuclear technologyNuclear technology
Nuclear technology
 
E waste management in india
E  waste management in indiaE  waste management in india
E waste management in india
 
Carbon nanotubes
Carbon  nanotubesCarbon  nanotubes
Carbon nanotubes
 
Anti collision technology of crashless cars
Anti collision technology of crashless carsAnti collision technology of crashless cars
Anti collision technology of crashless cars
 

Último

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Último (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

Scale free network Visualiuzation

  • 1. Visualizing Scale Free Network with the help of BA and FR algorithm By, Harshit Srivastava D03942013
  • 2. Start • As in the question number of nodes and the mean average distribution is been defined as 500 and 2.75 respectively. • Therefore, we can calculate number of edges in an undirected graph which leads to 500*2.75/2=688. • Now after knowing nodes and edges we can preferentially draw a BA model which can be indirectly said as no growth model as edges are already been defined. • As we know BA model shows, network grows with new nodes that enter the network subsequently. • With a condition that nodes that have more links will be preferred every time while network grows.
  • 3. Algorithm Steps • Start with a limited number of initial nodes • At each step, add a new node that has m edges that link to m existing nodes in the system • When choosing the nodes to which to attach, assume a probability P for a node i proportional to the number ki of links already attached to it • After t steps, the network will have n=t+m0 nodes and M=mt edges 0m 0mm    j j i i k k kP )( mtM mtn   0
  • 4. Distribution Algorithm • Then for finding distribution just, • Initially find how many connection each node has. • Initialize variable that will hold how many nodes have each degree. • This variable will be used to create a list of possible degrees a node can have • Dismantle the degrees with no connectivity • Find the last non zero element. • Plot these variables in respect of connectivity.
  • 5. Circular Layout (o/p) of 500 nodes and 688 edges Degree Freq. Circular layout in which darker colour represent more no. of degree and lightest represent least degree The degree of distribution will be as given 2.75
  • 6. Reinhold Algorithm View • This is forced based algorithm, based for graph layout. • Force based means it treats each vertex and edge as if it were a physical object whose position is influenced by force. • For example: in this algorithm each vertex can act as electron and each edge as a spring- the electrons all repel each other, while spring pull together. FR layout in which darker colour represent more no. of degree and lightest represent least degree
  • 7. Algorithm Steps • Define the width and length of the layout which is to be used. • Draw a graph G(V,E) randomly, and repeat it M times. • Then calculate repulsive forces on each vertex/electron, • Move the vertex will be having two information: position and displacement. • i.e., calculation for the difference vector between the positions of the two vertices • Now, calculate attractive forces, • On edges/springs • Have the same property as vector and difference in positon can be calculated.
  • 8. • Basically this algorithm works as, on atomic particles exerting forces from one another, where attractive and repulsive forces are defined as 𝑓𝑎 𝑑 = 𝑑2 𝑘 and 𝑓𝑟 𝑑 = − 𝑘2 𝑑 , 𝑤ℎ𝑒𝑟𝑒 d is defined as length of vertex or distance between two vertices and k is derived as optimal distance between vertices and written as, • k= 𝑎𝑟𝑒𝑎/𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑣𝑒𝑟𝑡𝑖𝑐𝑒𝑠 • This algorithm is basically included in many packages and tools to visualize network model.(igraph, Tulip, Graphviz, Gephi)
  • 9. • If we look into this model we will observe the average(shortest) path is around 5.27 and highest degree of node is 14. • The number of shortest paths are 187062 • This shortest path is calculated by 𝑙 = 𝑙𝑜𝑔𝑁 𝑙𝑜𝑔𝑙𝑜𝑔𝑘 , where k is degree of node
  • 10. Now to filter Giant Component • We will initially find the number of giant components and will then filter them out. • To find them we will initially find the probability of an edge between two attracted connections. • Find the number of nodes compose a giant connection which came around 69 nodes and 5 edges. • Basically we had 500 nodes and 688 edges initially after filtering giant components the node was left with 431(86.2% visible) nodes with 684( 99% visible) edges. • Which lead to increase the average degree of distribution to 3.19, with the change in average path 187056 and diameter same as 13.
  • 11. After removing Giant Components Degree Freq.FR layout in which darker colour represent highest degree and lightest represent least degree After filtering Giant component the degree of distribution increased to 3.19
  • 12. Average Degree of Distribution • In analysing this network we have a node of highest degree 14(pink colour) and lowest as usual is 1 (yellow). • So, according to question if we remove the highest degree node
  • 13. Final Network View after Removing Highest Degree • There would not much change in nodes as only 3 were removed but will observe the edges will decrease to 673. • We will observe there would be not so much change in the network as average degree is around 3.14. • But there would be no change in the diameter of the network. • Average path length increased to 5.37 with decrease in number of shortest path to 184470 FR layout in which darker colour represent highest degree and lightest represent least degree
  • 15. Conclusion • In this model we have observed that the structure has a phenomena of attractiveness in which rich get richer or the winner takes it all. • In extreme case it can be said as monopolistic network. • In this network if we compare and say that it is contagious network as many hubs will pass massively to connected multiple nodes. • We can say this scale free network remains nearly same as new nodes are added or removed.
  • 16. References • Barabási, Albert-László and Réka Albert, "Emergence of scaling in random networks", Science, 286:509-512, October 15, 1999 • Fruchterman, T. M. J., & Reingold, E. M. (1991). Graph Drawing by Force-Directed Placement. Software: Practice and Experience, 21(11) • Tools used iGraph, Gephi and Matlab.
  • 18. Algorithm If we have number of nodes and initial number of nodes 𝑚0, where minimum degree 1 ≤ 𝑑 ≤ 𝑚0, therefore to get scale free multigraph 𝑖. 𝑒. , 𝐺(0….N-1, E), 1. Make a clique for m random element of graph. 2. Add this element to a processed list L. 3. Take one node, j at random from the graph G. Set 𝑃 = (𝑘(𝑗)/𝑆𝑈𝑀(𝑘_𝑡 𝑎 )) 4. Pick a real number R uniformly at random between 0 and 1. 5. If P>R then add j to i’s adjacency list. 6. Repeat steps 4 and 6 until I has m nodes in its adjacency list. 7. Add i to the adjacency list of each node in its adjacency list. 8. Add i to the graph. 9. Repeat steps 3-9 until there are N nodes in the graph. *Where K(j) is the degree of the node j in the graph G and k_t is twice the number of edges ( the total number of degrees) in the graph.