File:Barabasi Albert model.gif

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(800 × 800 像素,檔案大小:255 KB,MIME 類型:image/gif、​循環、​18 畫格、​18秒)


摘要

描述
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 head 已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。
w:zh:共享創意
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
您可以選擇您需要的授權條款。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

創作作者 Chinese (Hong Kong) (已轉換拼寫)

沒有維基數據項目的某些值

維基媒體使用者名稱 繁體中文 (已轉換拼寫):​Harp
作者姓名字串 繁體中文 (已轉換拼寫):​Horváth Árpád

著作權狀態 繁體中文 (已轉換拼寫)

有著作權 繁體中文 (已轉換拼寫)

GNU自由文檔許可證1.2或更高版本 繁體中文 (已轉換拼寫)

共享創意署名-相同方式共享3.0Unported Chinese (Hong Kong) (已轉換拼寫)

多媒體型式 繁體中文 (已轉換拼寫)

image/gif

校驗和 繁體中文 (已轉換拼寫)

a52986cf2e3204f992ee6f633ef66264faa8686a

斷定方法:​SHA-1 中文 (已轉換拼寫)

資料大小 Chinese (Hong Kong) (已轉換拼寫)

260,850 位元組

18

800 像素

800 像素

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2011年7月20日 (三) 08:44於 2011年7月20日 (三) 08:44 版本的縮圖800 × 800(255 KB)52Dora囧rz被耍了...
2011年7月20日 (三) 08:43於 2011年7月20日 (三) 08:43 版本的縮圖800 × 800(296 KB)52Dora最新版本的GIF根本就没有动
2009年1月29日 (四) 13:20於 2009年1月29日 (四) 13:20 版本的縮圖800 × 800(255 KB)HarpWithout frame (without plt.frame("equal")
2009年1月28日 (三) 22:02於 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

下列2個頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: