File:Erdős–Rényi model random graphs.pdf
Original file (960 × 720 pixels, file size: 12 KB, MIME type: application/pdf)
Captions
SummaryEdit
DescriptionErdős–Rényi model random graphs.pdf 
English: Erdős–Rényi model random graphs with different values of P. The plot has been obtained by the following Python code:
import networkx as nx import matplotlib.pyplot as plt from scipy.stats import bernoulli colors = ["blue", "red", "green", "yellow"] probs = [0.1, 0.3, 0.5, 0.8] N=20 plt.figure() for n in range(len(colors)): p=probs[n] G = nx.Graph() G.add_nodes_from(range(N)) for node1 in G.nodes(): for node2 in G.nodes(): if bernoulli.rvs(p=p) and node1>node2: G.add_edge(node1, node2) plt.subplot(2,2,n+1) nx.draw(G, node_color=colors[n], edge_color='gray', label="P=" + str(probs[n]), node_size=12) plt.legend(fontsize = 'small', labelspacing =1) plt.show() plt.savefig("fig.eps")Català: Grafs aleatoris obtinguts a partir del model d'ErdősRényi amb diferents valors del paràmetre P. La gràfica s'ha obtingut a partir del codi de Python:
import networkx as nx import matplotlib.pyplot as plt from scipy.stats import bernoulli colors = ["blue", "red", "green", "yellow"] probs = [0.1, 0.3, 0.5, 0.8] N=20 plt.figure() for n in range(len(colors)): p=probs[n] G = nx.Graph() G.add_nodes_from(range(N)) for node1 in G.nodes(): for node2 in G.nodes(): if bernoulli.rvs(p=p) and node1>node2: G.add_edge(node1, node2) plt.subplot(2,2,n+1) nx.draw(G, node_color=colors[n], edge_color='gray', label="P=" + str(probs[n]), node_size=12) plt.legend(fontsize = 'small', labelspacing =1) plt.show() plt.savefig("fig.eps") 
Date  
Source  Own work 
Author  Jordiventura96 
LicensingEdit

This file is licensed under the Creative Commons AttributionShare Alike 4.0 International license.  
https://creativecommons.org/licenses/bysa/4.0 CC BYSA 4.0 Creative Commons AttributionShare Alike 4.0 truetrue 
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time  Thumbnail  Dimensions  User  Comment  

current  22:13, 1 December 2017  960 × 720 (12 KB)  Jordiventura96 (talk  contribs)  User created page with UploadWizard 
 You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
 Usage on ca.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used  matplotlib 2.1.0, http://matplotlib.org 

Conversion program  matplotlib pdf backend 2.1.0 
Encrypted  no 
Page size  460.8 x 345.6 pts 
Version of PDF format  1.4 