File:Barabasi Albert model.gif
出自Wikimedia Commons
跳至導覽
跳至搜尋
預覽大小:600 × 600 像素。 其他解析度:240 × 240 像素 | 480 × 480 像素。
原始檔案 (800 × 800 像素,檔案大小:255 KB,MIME 類型:image/gif、循環、18 畫格、18秒)
檔案資訊
結構化資料
說明
摘要
[編輯]描述Barabasi Albert model.gif |
English: The evolution of a network by the Barabasi–Albert model. In every step, one new node appears, and in this case there is two new edges from the new node to the old ones.
Magyar: Egy hálózat fejlődése a Barabási–Albert modell szerint. Minden lépésben egy új csúcs jelenik meg, és ebben a változatban minden új csúcsból két él mutat a régi csúcsokhoz. |
日期 | |
來源 | Created by the NetworkX module of the Python |
作者 | Horváth Árpád |
本GIF 點陣圖使用Matplotlib創作。
The code is (using the python-networkx and python-matplotlib packages on Ubuntu GNU/Linux distribution):
#! /usr/bin/python # coding: utf-8 import networkx #import pylab from pylab import pi, cos, sin, linspace, array import matplotlib.pyplot as plt import os node_number = 20 initial_nodes = 2 animation = False animation = True G=networkx.barabasi_albert_graph(node_number, initial_nodes) # pos=networkx.graphviz_layout(G, prog="dot") type="shell4" pos=networkx.shell_layout(G) #pos=networkx.graphviz_layout(G,prog='twopi',args=) print pos dir=os.path.join("images", type) if not os.path.isdir(dir): os.mkdir(dir) Ge = networkx.empty_graph(node_number) #networkx.draw(GG,pos, node_color="w") for i in range(initial_nodes,node_number): nodes = range(i+1) GG = G.subgraph(nodes) plt.figure(figsize=(8,8)) networkx.draw(GG,pos, node_color="w", alpha=0.5, node_color="blue", node_size=20, with_labels=False, hold=False) #networkx.draw(Ge,pos, node_color="w", alpha=0.5, node_color="blue", node_size=20, with_labels=False, hold=True) #nx.draw(G,pos,node_size=20,alpha=0.5,node_color="blue", with_labels=False) xmax=max(xx for xx,yy in pos.values()) xmin=min(xx for xx,yy in pos.values() + [(0,0)]) ymax=max(yy for xx,yy in pos.values()) ymin=min(yy for xx,yy in pos.values() + [(0,0)]) dx = xmax - xmin ddx=0.1*dx dy = ymax - ymin ddy=0.1*dy plt.xlim(xmin-ddx,xmax+ddx) plt.ylim(ymin-ddy,ymax+ddy) plt.savefig("%s/barabasi_%s%02d.png" % (dir, type, i)) if animation: input = os.path.join(dir, "*.png") output = os.path.join(dir, "barabasi_albert.gif") os.system("convert -delay 100 -loop 0 %s %s" % (input, output))
(If someone knows how to eliminate the frame around the network, write to me, please.)
授權條款
[編輯]我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
此檔案採用共享創意 姓名標示-相同方式分享 3.0 未在地化版本授權條款。
- 您可以自由:
- 分享 – 複製、發佈和傳播本作品
- 重新修改 – 創作演繹作品
- 惟需遵照下列條件:
- 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
- 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
您可以選擇您需要的授權條款。
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2011年7月20日 (三) 08:44 | 800 × 800(255 KB) | 52Dora(對話 | 貢獻) | 囧rz被耍了... | |
2011年7月20日 (三) 08:43 | 800 × 800(296 KB) | 52Dora(對話 | 貢獻) | 最新版本的GIF根本就没有动 | ||
2009年1月29日 (四) 13:20 | 800 × 800(255 KB) | Harp(對話 | 貢獻) | Without frame (without plt.frame("equal") | ||
2009年1月28日 (三) 22:02 | 800 × 800(296 KB) | Harp(對話 | 貢獻) | {{Information |Description={{en|1=The evolution of a graph by the Barabasi Albert model. In every step, one new node appears, and in this case there is two new edges from the new node to the old ones. }} {{hu|1=Egy gráf fejlődése a Barabási-Albert mod |
無法覆蓋此檔案。
檔案用途
沒有使用此檔案的頁面。
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- az.wikipedia.org 的使用狀況
- bn.wikipedia.org 的使用狀況
- de.wikipedia.org 的使用狀況
- en.wikipedia.org 的使用狀況
- en.wikibooks.org 的使用狀況
- fa.wikipedia.org 的使用狀況
- fr.wikipedia.org 的使用狀況
- he.wikipedia.org 的使用狀況
- hu.wikipedia.org 的使用狀況
- ja.wikipedia.org 的使用狀況
- meta.wikimedia.org 的使用狀況
- ru.wikipedia.org 的使用狀況
- sr.wikipedia.org 的使用狀況
- uk.wikipedia.org 的使用狀況
- zh.wikipedia.org 的使用狀況