網絡分析
Historical Network Analysis
網絡能用在任何研究上;但應該用的,要少得多。 “Networks can be used on any project. Networks should be used on far fewer.” — Scott Weingart
DHG 502 Digital Approaches in Historical Research  ·  Week 5  ·  ← → navigate  ·  1–8 sections  ·  G go to slide
T 中文 on/off  ·  F fullscreen

今天的路線Today’s route

1
基本概念Nodes, edges, types
→
2
測量Global and local
→
3
版面Layout
→
4
資料與個案Data, cases, theory
本週閱讀This week’s readings

什麼時候想到「網絡」?When do we think “network”?

研究對象之間相互依存;要理解發生了什麼,關係本身是必要的。 The things you study are interdependent: the connections matter, and are required to understand what is going on.
after Weingart, “Demystifying Networks”, Part I
歷史資料裡到處是關係:Historical sources are full of relations:
Correspondence書信往來
Teacher–student, same exam year師生、同年
Marriage and kinship姻親、親屬
Named together in a text共同出現
Places linked by routes城市與路線
Texts citing or copying texts文本互引
網絡把這些關係變成可以計數、比較的東西。 A network turns relations into something we can count and compare.

節點Nodes

節點(node;也叫 vertex, actor, agent):我們所研究的「東西」。通常是同一類型的許多個例。The “stuff” we study: many individuals of one type (also called vertices, actors, agents).
歷史研究中的節點類型:Node types in historical research:
人物 people地點 places機構 institutions事件 events文本 texts作品 works
節點有屬性(attributes):Nodes carry attributes:
節點 node生年 born卒年 died籍貫 native place官職 office
王安石10211086撫州臨川宰相
司馬光10191086陝州夏縣宰相
蘇軾10371101眉州眉山翰林學士
屬性讓我們之後能問:相連的人是否也共享籍貫、官職? Attributes let us ask later: do connected people also share a native place or an office?

邊Edges

邊(edge;也叫 link, tie, relation):節點之間的關係。關係的類型要事先定義。Relations between nodes (links, ties). The type of relation must be defined up front.
甲乙
無向:對稱的關係Undirected: symmetric (kinship, alliance)
甲乙
有向:有方向Directed: a letter from A to B, a citation
× 12
加權:強度或次數Weighted: 12 letters, not 1
多種類型:同一對人可有多種關係Multiple types: both colleagues and in-laws
每一個選擇都是歷史判斷:「同年」算不算一條邊?一封信算一條邊嗎? Every choice is a historical judgement: is “same exam year” an edge? Is one letter a tie?

一類節點,還是兩類?One kind of node, or two?

單模(1-mode):只有一種節點。雙模(2-mode, bipartite):兩種節點,邊只連接不同類型。1-mode: one type of node. 2-mode (bipartite): two types, and edges only link across types.
雙模 2-mode:人物 ↔ 文獻 people ↔ documents
甲乙丙丁一二三
⇒ 投影 projection
單模 1-mode:同現於一份文獻 co-named in a document
甲乙丙丁
多數中心性演算法為單模設計。Most centrality algorithms were designed for one-mode networks.
雙模網絡丟進 Gephi 算「中心性」,程式會跑,數字卻不是你以為的意思。 Run centrality on a bipartite network in Gephi: it works, but the numbers do not mean what they usually mean (Weingart).

背景:北宋的新法與舊法之爭Background: reform and opposition in Northern Song

1069
神宗任用王安石,推行新法(青苗法、免役法等)。Emperor Shenzong backs Wang Anshi’s New Policies.
1070s
司馬光、韓琦等反對;司馬光退居洛陽,編《資治通鑑》。Sima Guang, Han Qi and others oppose; Sima Guang retires to Luoyang to write the Zizhi tongjian.
1085–86
神宗去世,司馬光主政,廢除多數新法:元祐更化。Shenzong dies; Sima Guang returns and reverses most reforms (the Yuanyou period).
1094–
哲宗親政,起用章惇等新法派,元祐舊臣遭貶。Zhezong takes over; Zhang Dun and reformers return, Yuanyou officials are banished.
1102–04
徽宗重用蔡京,延續新法。蔡京為清除政敵,把反對者列為「奸黨」,刻石立碑(元祐黨籍碑);1104 年增至 309 人並頒行各州縣。名單上的人不得任官、入京,子孫受限。Huizong takes the throne and relies on Cai Jing, who continues the reform line. To eliminate rivals, Cai Jing lists opponents of the reforms as a “treacherous faction” and has the list carved in stone (the Yuanyou faction stele). By 1104 it names 309 people and is sent to the prefectures; those named are barred from office and the capital, and their descendants are restricted.
→
這份「黨」是政治製造的:名單上的人真的彼此相連嗎?這正是 De Weerdt 等人的研究。The “faction” was politically manufactured, so we can ask: were the people on the list really connected? This is what De Weerdt et al. study with network analysis.
Portrait of Wang Anshi
Wang Anshi 王安石
Portrait of Sima Guang
Sima Guang 司馬光
Portrait of Emperor Huizong
Emperor Huizong 宋徽宗
「新法」「舊法」是後人與當時人貼的標籤;蘇軾、歐陽修等人很難歸類。“New” and “old” are labels; people like Su Shi and Ouyang Xiu are hard to classify.

一張小網絡A small network to work with

示意網絡(簡化,非研究資料) toy network, simplified for illustration
12 個節點(人物)
19 條無向邊(「有往來」)
12 nodes (people), 19 undirected edges (“in contact”)
以屬性上色:Colour by attribute:
新法一系associated with the New Policies
舊法一系associated with the opposition
其他/難以歸類other / hard to classify
接下來幾頁,我們都用這張圖量一量。We will measure this network on the next slides.

整體與局部Network properties: global and local

整體測量Global measures

描述整張網絡的結構Describe the overall structure
密度 density平均路徑長度 average path length模組度 modularity
例:緊密的明代官員網絡 vs. 鬆散的貿易網絡A dense network of Ming officials vs. a sparse trade network

局部測量Local measures

聚焦個別節點或小群體Focus on individual nodes or small groups
度中心性 degree聚類係數 clustering中介/接近 betweenness, closeness
例:誰是關鍵中間人?誰屬於緊密小圈子?Who is the key intermediary? Who sits in a tight circle?
整體看大圖,局部看行動者。接下來用同一張小網絡逐項計算。 Global: the big picture. Local: the actors. Next we compute each measure on one small network.

整體測量Global measures: describing the whole network

示意網絡 toy network
·
規模:節點數 · 邊數Size: nodes · edges
密度 = 實際的邊 ÷ 可能的邊()Density: actual edges ÷ possible edges
平均路徑長度:任兩人之間平均隔幾步Average path length: steps between two nodes
直徑:最遠的兩人(橘色路徑)Diameter: the longest shortest path (orange)
網絡越大,密度通常越低:不同規模不能直接比。Larger networks are sparser: sizes must be accounted for.

誰重要?三種中心性Who matters? Three centralities

度中心性Degree

直接連接的數量How many direct connections
誰最活躍 who is busiest

中介中心性Betweenness

位於他人最短路徑上的頻率How often a node lies on shortest paths
誰是橋樑 who is the bridge

接近中心性Closeness

到所有人平均有多近How near a node is to everyone else
誰最快到達 reaches all fastest
進階:特徵向量中心性與 PageRank —— 連到「重要的人」比連到「很多人」更算數。Advanced: eigenvector centrality and PageRank weigh the importance of the neighbours too (links to important nodes count for more).

同一張圖,三個答案One network, three answers

節點大小 = 中心性;橘色為前三名 size = centrality, orange = top three
度:誰的朋友最多?Degree: who has the most ties?
中介:誰是橋樑?Betweenness: who bridges the camps?
接近:誰離所有人最近?Closeness: who is nearest to everyone?
三個排名不一樣。選哪個指標,就是選哪種「重要」。The rankings differ. Choosing a measure means choosing a kind of importance.

聚類係數:朋友的朋友也互相認識嗎?Clustering: are my neighbours also neighbours?

藍=所選節點;橘=鄰居與鄰居之間的邊 blue = chosen node, orange = its neighbours and their mutual edges
看一個節點的鄰居:他們之間有多少條邊?Look at one node’s neighbours: how many of them know each other?
高 C = 緊密小團體;低 C = 鄰居互不相識,此人可能是中介者。High C: a tight clique. Low C: neighbours do not know each other, so this node may be a broker.

進階中心性Advanced centrality measures

不只算「有幾條邊」,還算「連到誰」。Not only how many ties, but who the ties lead to.

特徵向量中心性Eigenvector centrality

鄰居越重要,自己越重要。Important if connected to other well-connected nodes.

Katz 中心性Katz centrality

計入直接與間接連結,距離越遠權重越小(衰減)。Direct and indirect ties, with a decay for distant nodes.

PageRankPageRank

兼顧連結的數量與品質;原用於網頁排名。Weighs the number and quality of links; designed for ranking web pages.

調和中心性Harmonic centrality

類似接近中心性,但適用於不連通的網絡。Like closeness, but works on disconnected networks.
歷史網絡常常不連通(史料有缺);選指標時要先檢查網絡是否連通。 Historical networks are often disconnected because sources are incomplete: check connectivity before choosing a measure.

社群:網絡自己分出來的群Communities: groups the network finds by itself

示意網絡 toy network
模組度 Q:群內的邊,比「隨機連接」所預期的多多少?Modularity Q: how many more edges fall within groups than chance would give?
「隨機」怎麼算?各節點連接數不變,邊隨機重配:i、j 間預期邊數 = (i 的連接數 × j 的連接數) ÷ (2 × 總邊數)。How is chance computed? Keep every node’s number of ties but rewire the edges at random. Well-connected nodes meet others more often: the expected number of edges between i and j is (ties of i × ties of j) ÷ (2 × total edges).
Q = 群內實際邊的比例 − 預期比例(各群加總)。Q 近 0 = 與隨機相當。Q = share of edges that actually fall inside groups − share expected inside groups by chance (summed over groups). Q near 0 means the split is no better than random.
已知標籤 Q = ;演算法 Q = (越高,分群越清楚)Our labels vs. the algorithm: higher Q means a cleaner split
社群由結構算出;與標籤不吻合之處才有意思。 Structure, not sources, defines communities.

圖的版面Graph layouts

版面(layout):決定節點與邊在圖上的位置的方法。它影響可讀性,也影響我們「看到」什麼。The method that positions nodes and edges. It shapes readability, and what we think we see.

力導向Force-directed / spring

節點互斥、邊如彈簧;均衡且好看。Nodes repel, edges act as springs.

圓形Circular

節點排成一圈;適合比較同一組節點。Nodes on a circle; good for comparing the same node set.

同心圓Shell

節點分層排成同心圓;突顯層級。Concentric circles; highlights hierarchy.

Kamada–KawaiKamada–Kawai

另一種力導向;節點分布更均勻。A force-directed variant with more even spacing.

譜版面Spectral

用特徵值定位;常能顯示群集。Uses eigenvalues; often reveals clusters.

時間/地圖Timeline / geographic

以時間或地理座標定位:位置有意義。Positions given by time or geography: here position is meaningful.

圖的起源:莫雷諾的社會關係圖The origins: Moreno’s sociograms (1934)

Moreno sociograms of school classes
Moreno 1934, Who Shall Survive?: “Evolution of groups”, the same school class in 1st, 2nd and 3rd grade
Moreno 與 Jennings(1930 年代):用圖表示學童之間「誰選了誰」。Moreno and Jennings, 1930s: drawing who chose whom among school children.
三角形=男孩,圓形=女孩;箭頭=選擇。Triangles are boys, circles are girls; arrows are choices.
最早的社會網絡圖之一 —— 位置是手工安排的。Among the earliest network diagrams in the social sciences, with positions arranged by hand.
他想要「精確地」看出一個群體的結構。He wanted to see the structure of a group “precisely”.

圖之外,也有數字Beyond the picture: counting structures

Moreno kindergarten sociogram and tables
Moreno 1934: sociogram of a kindergarten (15 boys, 18 girls) with tables of choices and structures
他已經在數:孤立者、互選的一對、三角形、鏈。He already counts isolated children, mutual pairs, triangles and chains.
「星」=被很多人選擇的中心 —— 今天叫度中心性。“Stars”, centres of attraction, are what we now call high degree.
表格按年級比較:孤立者與互選對的比例,隨年級變化。Tables compare grades: shares of isolates and mutual pairs change with grade.

新版面,新發現A new layout reveals new structure

Moreno original layout vs force-directed layout
Left: Moreno’s original layout. Right: the same kind of data in an attraction–repulsion (force-directed) layout. Image from the lecture video “Introduction to Social Network Analysis [2/5]: The Origins”.
左:男孩與女孩各佔一側,版面由分類決定。Left: boys and girls are placed apart, so the layout is dictated by the category.
右:由連結本身決定位置,浮現出群集與橋接者。Right: ties decide positions, and clusters and bridges emerge.

版面不是證據A layout is not evidence

同一份資料,三種畫法:The same data, drawn three ways:
隨機 random
圓形 circular
力導向 force-directed
力導向:節點互相排斥,邊像彈簧把相連的節點拉近。Force-directed: nodes repel, edges pull like springs.
位置的意義只在相對的遠近;x、y 軸本身沒有意義。看起來在「中間」,不代表中心。Only relative closeness means anything; axes carry no meaning. “Centre of the picture” is not “central”.

好版面:固定位置,才能比較A good layout: fixed positions allow comparison

Liang Qichao and Chen Duxiu term networks
Chao et al. 2021, Fig. 7: 30 terms on a circle; left Liang Qichao, right Chen Duxiu; red edges are shared by both men.
兩張圖用同樣的節點位置,眼睛一下就能看出哪些邊不同。Both graphs use identical node positions, so differences in edges are visible at once.
力導向版面會讓兩張圖無法並排比較。A force-directed layout would make the two graphs hard to compare.

毛線球:太多節點時怎麼辦The hairball: what to do with too many nodes

Eastern Jin aristocratic network
Shang & Sang 2021, Fig. 2: aristocratic network from the Shishuo xinyu (Tales of the World), 250 nodes
用視覺通道傳遞資訊Use visual channels to carry information
  • 大小/字級 = 中心性 size = centrality
  • 顏色 = 社群(Louvain,18 個)colour = community
  • 線粗 = 權重 thickness = weight
過濾:只畫重要的Filter: draw only what matters
Xiong 的圖濾掉了中介中心性低於中位數的節點,「為了視覺清晰」。Xiong filters out nodes below the median betweenness “for visual clarity”.
圖是溝通工具;結論來自指標與史料。The picture communicates; conclusions come from measures and sources.

網絡 = 兩張表A network is two tables

節點表 node tableone row per entity
idnameborngroup
P001王安石1021new
P002司馬光1019old
P003蘇軾1037other
P004蘇轍1039other
…
邊表 edge listone row per relation
sourcetargettypeweightevidence
P003P004兄弟 brothers1…
P003P002書信 letter3文集卷…
P001P003共現 co-named7…
…
這就是 Gephi、Palladio、Python 所需要的全部輸入。難的是怎麼填好這兩張表。 This is all that Gephi, Palladio, or Python need as input. The hard part is filling in the two tables.
好習慣:每條邊都要記下出處(evidence),才能回到史料核對。Good habit: record the evidence for every edge, so you can go back to the source.

共現:用文本造邊Co-occurrence: building edges from texts

不是每段關係都有記載;但兩個名字出現在同一處,是可以大規模抽取的證據。Few relationships are recorded explicitly, but two names appearing together can be extracted at scale.
……甲與乙同遊,丙後至。……
示意句 illustrative sentence
同一個句子裡?同一封信裡?同一份文獻裡?—— 「共現」要多近,是你的選擇。Same sentence? Same letter? Same document? How near is “together” is your choice.
這就是上週搭配詞的問題:視窗、句子、語法關係。邊的定義決定網絡的形狀。 The same problem as last week’s collocations: window, sentence, grammatical relation. The definition of the edge shapes the network.
De Weerdt 等人:在同時代人的文集中標記黨籍名單上的人名,兩人共現就算一條「被認知的關係」(perceived tie)。De Weerdt et al.: names from the faction lists were tagged in contemporaries’ writings; co-occurrence counts as a “perceived tie”.

共現的陷阱:一份名單 = 一個全連接圖A trap: one list becomes a clique

一句話裡 3 個名字3 names in one sentence

3 條邊3 edges

一份名單裡 5 個名字5 names in one list

10 條邊 —— n 個名字 → n(n−1)/2 條邊10 edges: n names give n(n−1)/2 edges

309 人的黨籍名單The 309-name Yuanyou list

47,586
條「關係」,只因為一份名單“ties” created by a single list: 309 × 308 / 2
De Weerdt 等人因此把整份名單這類文件另外處理,不當作關係證據。 De Weerdt et al. therefore treat documents that merely reproduce the full list separately, not as evidence of relations.

同一個人,多個名字Entity identity: one person, many names

電腦把「蘇軾」和「蘇東坡」當成兩個節點。A computer treats 蘇軾 and 蘇東坡 as two different nodes.
蘇軾蘇子瞻蘇東坡東坡居士蘇文忠
不做對應 without resolution
蘇軾東坡子瞻文忠
一個人被拆成四個小節點,每個都只有一兩個鄰居One person split into four small, weakly connected nodes
對應後 after resolution
蘇軾
一個樞紐節點,度中心性大增One hub node: its degree jumps
反方向的錯誤:不同人同名,被錯併成一個節點The opposite error: different people with the same name merged into one
解法:用唯一 ID 的人物資料庫(如 CBDB);De Weerdt 等人:309 人中 301 人在 CBDBFix: a database with unique IDs (e.g. CBDB). In De Weerdt et al., 301 of 309 listees are in CBDB.

缺失的關係與不確定性Missing relationships and uncertainty

① 沒有邊 ≠ 沒有關係No edge ≠ no relationship

文獻沒有記載,只代表沒有留下證據。Absence from the sources means no surviving evidence, not no relation.

② 史料被選擇過The archive was selected

牛津藏信的網絡,反映的是誰收藏了什麼,不只是誰寫了信(Weingart)。A network of letters held in Oxford reflects what Oxford collected, not only who wrote to whom.

③ 以「我」為中心的取樣Ego-network sampling

只收集某人的朋友,這個人必然最中心。取樣方式直接影響中心性。Collect one person’s friends and that person is necessarily most central. Sampling shapes centrality.

④ 邊本身不確定Edges are uncertain

是「同一人」嗎?是「友」還是「敵」?人文資料「本質上就是不確定的」。Same person? Friend or foe? Humanistic data are almost by definition uncertain.
所以:記錄你的決定,並在結論中說明網絡「看不見」什麼。 So: document your decisions, and state in your conclusions what the network cannot see.

黨籍名單裡真的有「黨」嗎?Is there a faction in this list?

De Weerdt, Ho, Wagner, Qiao & Chu (Journal of Chinese History, 2020)Large-scale network analysis of Song faction lists
黨籍名單:朝廷開列的官員名單,把他們指為結黨的「朋黨」,並加以貶謫、禁用。有的由朝廷頒布(如 1104 年元祐黨籍碑,309 人),有的是私人編成。A faction list names officials accused of forming a “faction” (pengdang) and punished by demotion, exile or bans from office. Some lists were promulgated by the court (the 1104 Yuanyou list, 309 names); others were privately compiled.
Yuanyou list 元祐黨籍1104309 names · issued by the court

Targets officials of the Yuanyou period (1086–94) who had opposed the New Policies. Carved on stone steles and displayed in the capital and the prefectures under Cai Jing.

Shaoxing list 紹興名單c. 1142compiled privately

Names men persecuted under the chief councillor Qin Gui, who dominated the court during the peace with the Jurchen Jin. Assembled by later writers, not by the court.

Qingyuan list 慶元黨禁c. 119859 names · compiled privately

The “Prohibition of False Learning” under Han Tuozhou in the Qingyuan era (1195–1200). Its targets were Zhao Ruyu, Zhu Xi and followers of Daoxue (“Learning of the Way”). Names come from a later private record.

問題:名單上的人,在當時人眼中真的彼此相連嗎?還是「黨」只是名單製造出來的?Question: were the people on these lists actually seen as connected by their contemporaries, or is “faction” an artefact of the list?
把一個老問題,改成可檢驗的問題:同時代文集裡,名單上的人是否更常被一起提到? An old debate becomes a testable question: are listees mentioned together in contemporary writings?

他們怎麼做How they did it

他們從三份名單出發:先在同時代人的文集裡找出名單上每個人的名字(含別名),再把「兩人在同一處被提到」當作一條被認知的關係,最後比較各名單的網絡結構。Starting from the three lists, they tagged every listee (and alias) in contemporaries’ writings, treated “named together” as a perceived tie, and compared the network structure of each list.
1
名單 → 節點Each listee becomes a node, matched to CBDB (301 of 309)
2
標記人名(含別名)於同時代文集Tag names and aliases in contemporary prose collections (MARKUS)
3
共現 → 邊(「被認知的關係」)Co-occurrence becomes an edge: a perceived tie
4
算密度、聚類係數、社群Density, clustering, community detection
5
與隨機樣本比較(下一頁)Compare against random samples (next slide)
還區分了:作者「自己提到自己的關係」、名單上的人所寫的文字,與其他人所寫的文字。They also separated self-reported ties, and texts by listees from texts by outsiders.

不同大小的網絡,怎麼比?How do you compare networks of different sizes?

問題:大網絡的密度通常較低 —— 直接比,會誤判。Problem: larger networks are usually sparser, so a direct comparison misleads.
Large networke.g. 146 nodes 大網絡
→
Random sampledown-sample to the size of the small network 隨機抽樣
→
Repeat 1,000 timesgives a null distribution 重複 1,000 次
→
Empirical p-valueis the small network’s density unusual? 經驗 p 值
跟上週一樣的邏輯:不問「這個數字大不大」,而問「在偶然之下,這個數字會多大」。 The same logic as last week: not “is this number big?” but “how big would it be by chance?”

他們發現了什麼What they found

1104 元祐名單Yuanyou list

核心是一個連通的京城官僚網絡;名單上多數人在這些文獻中並無相互關聯(309 人中僅 146 人入網)。At its core a large connected metropolitan network; most listees are not tied to others (146 of 309 in the network).

1142 紹興名單Shaoxing list

看不出是一個聯盟;更像是秦檜當政時一連串報復所形成的受害敘事。Does not look like a coalition; may reflect a victimization narrative based on reprisals under Qin Gui.

1198 慶元黨禁Qingyuan blacklist

網絡顯著更密、局部聚類更高(59 人中 49 人入網):由知識與政治群集組成、有層級的聯盟。Significantly denser and more clustered (49 of 59): a hierarchical coalition of intellectual and political clusters.

更大的圖像The bigger picture

士人網絡由京城官僚同儕轉向地方與區域的連結,同時仍需通往朝廷的縱向管道。Elite networks shift from capital-based bureaucratic peers to local and regional ties, still needing vertical access to the court.
作者強調:計算結果是對研究的貢獻,不是定論,可以被修正或反駁。The authors stress that computational conclusions are contributions to a debate, open to challenge.

中國史上的網絡研究Case studies from “Beyond Guanxi”

Rudolph & Chen, eds., Journal of Historical Network Research 5 (2021)
StudyNodesEdgesQuestion
Shang & Sang
Eastern Jin 東晉
PeopleInteractions recorded in the Shishuo xinyu 《世說新語》Family cohesion vs. ties across families?
Xiong
Southern Song 南宋
Official postsCareer moves from post to post (directed)Which posts are “stepping stones”?
Bol
Wuzhou 婺州
LiteratiKinship and scholarly tiesFrom kin to colleagues?
Chao et al.
Liang Qichao, Chen Duxiu 梁啟超、陳獨秀
30 key termsTerm co-occurrenceHow alike were their visions of the nation?
Armand & Henriot
Republican era 民國
PeopleCo-occurrence in biographiesDoes co-occurrence mean a relationship?
Levine
Revolutionaries abroad
PeoplePersonal ties (SRL dataset)Who are the hubs?
ECPO
Republican periodicals 民國期刊
People, articles, ads, institutions, imagesLinks between people and published contentA two-mode network
注意:節點不一定是人,邊不一定是「友誼」。Nodes need not be people; edges need not be friendship.

東晉士族:家族是堡壘嗎?Eastern Jin: were aristocratic families fortresses?

《世說新語》記載東晉名士的軼事。作者把書中人物的往來整理成網絡,檢驗傳統說法:大族之間是否水火不容?結果是家族關係有些影響,但跨家族往來同樣普遍,大族因而維持了凝聚。Shang & Sang (2021). The Shishuo xinyu collects anecdotes about Eastern Jin elites. The authors turn the interactions into a network to test the view that the great families were bitter rivals. Family ties mattered somewhat, but cross-family ties were common, which kept the families cohesive as a status group.
1
資料:《世說新語》的軼事Data: anecdotes in A New Account of the Tales of the World
2
網絡:250 個人物、505 條邊;195 人歸入 62 個家族(屬性)250 nodes, 505 edges; family affiliation as a node attribute (195 people, 62 families)
3
測試:同族相連(同質性 homophily)有多強?與模擬網絡比較(ERGM)How strong is homophily by family? Compared with simulated networks (ERGM)
4
結果:同族偏好存在,但很弱;跨家族往來很普遍Homophily exists but is weak; ties across families were common
對比「士族相互衝突」的傳統敘述:網絡顯示了相當程度的社會凝聚。Against the traditional emphasis on conflict between families, the network shows notable social cohesion.

節點不一定是人:官職網絡Nodes need not be people: a network of offices

南宋初有一項「儲才」政策:讓有才能的官員先任職祕書省,作為通往最高層的跳板。作者追蹤 1131–1164 年任職者的仕途,把官職之間的轉任畫成有向網絡,檢驗這條「快車道」實際怎麼運作。Xiong (2021). Early Southern Song had a “talent-nurturing” policy: promising officials were first posted to the Imperial Library as a launchpad. Xiong follows the careers of its appointees and draws transfers between offices as a directed network, to see how the fast track actually worked.
祕書省Imperial Library
→
某職位office B
→
某職位office C
→
高層職位top offices
197
被任命者appointees
3,367
轉任紀錄transfer records
1,042 · 2,360
節點(官職)· 有向加權邊nodes (offices) · directed, weighted edges
邊有方向、有權重(轉任次數);許多職位是通往最高層的跳板。Edges are directed and weighted; many offices turn out to be stepping-stones to the top.
同樣的工具,不同的問題:制度如何運作,而不只是誰認識誰。The same tools, a different question: how the institution worked, not only who knew whom.

從親族到同僚From kinship to collegiality

宋到元之間,婺州(浙江中部)的士人如何組成社群?Bol 用 CBDB 的親屬與學術往來資料比較南宋與元:婚姻圈變得幾乎完全在地,但以學問為基礎的網絡仍把全府的士人連在一起。Bol (2021). How did the literati of Wuzhou (central Zhejiang) form communities between Song and Yuan? Using CBDB kinship and learning ties, Bol finds that marriage became almost entirely local while a learning network still connected literati across the prefecture.
Yuan kinship giant component, Wuzhou
Bol 2021, Fig. 2: giant component of Yuan kinship (242 of 1,321 nodes); Wuzhou counties coloured
婚姻(親族)關係越來越地方化,連跨府的親族關係也減少。Kinship ties became more local, and cross-prefecture kinship declined.
但跨府的學術往來增加,成為士人團結的新基礎。Cross-prefecture scholarly connections grew and became the new basis of literati solidarity.
多個分離的小群本身也是結果。The separate components are a finding too.

詞語網絡:用共現看思想A network of words: co-occurrence and ideas

梁啟超與陳獨秀晚年是否都轉向更集權的統治?作者選出 30 個建國相關詞,看兩人各時期的文章裡哪些詞常一起出現,再回到這些段落細讀,而不是只靠圖。Chao et al. (2021). Did Liang Qichao and Chen Duxiu both drift toward more centralized rule late in life? The authors pick 30 nation-building terms, see which co-occur in each period, and then close-read those passages instead of relying on the graph alone.
1
節點:30 個與建國相關的詞(民主、共和、立憲……)Nodes: 30 nation-building terms (democracy, republic, constitutionalism…)
2
邊:兩詞共現,且卡方檢定 p < 0.001(非偶然)Edge: two terms co-occur and Pearson’s χ² gives p < 0.001
3
按時期分別建網,用模組度看模組(例:陳獨秀第一期 Q = 0.7,五個模組)Networks per period; modularity finds modules (e.g. Chen, first period: Q = 0.7, five modules)
就是上週的搭配詞,換成網絡的語言:顯著共現的詞對 = 邊。Last week’s collocations in network language: a significant co-occurring pair is an edge.
發現:梁的詞彙更豐富,陳用較少的詞但反覆使用;細讀顯示梁最終主張有限度的「民主」,陳晚年對「無產階級民主」態度矛盾 —— 並不是簡單的「回到專制」。Findings: Liang used a richer vocabulary, Chen a smaller set repeated often; close reading shows Liang settling on a limited form of democratic rule and Chen ambivalent about proletarian democracy, not a simple return to authoritarianism.

共現 = 關係嗎?Does co-occurrence equal a relationship?

《民國人物傳》是一部傳記辭典。作者問:同一篇傳記裡出現的兩個人,真的有關係嗎?他們先建共現網絡,再人工標註關係類型,兩者比較後發現,政治與職業關係遠比傳統所說的「三同」(同鄉、同學、同業)重要。Armand & Henriot (2021). The Biographical Dictionary of Republican China: are two people named in one biography really related? The authors build a co-occurrence network, annotate the actual relations, and compare. Political and professional ties far outweigh the traditional “three sames” (native place, school, trade).
3,254 · 9,524
共現網絡:節點 · 邊co-occurrence network: nodes · edges
曾國藩只有 14 條邊,卻連接 544 個節點、7,795 條邊 —— 典型的中介者。Zeng Guofan has only 14 edges yet connects 544 nodes and 7,795 links: a broker.
人工標註真正的關係後(軍人網絡):After annotating actual relations (military networks):
共現 co-occurrence標註 annotated
節點 nodes227101
邊 edges811225
聚類係數 clustering0.3390.074
共現網絡高估了關係與聚類;很多人只是被當作背景「提到」。A co-occurrence network overstates relations and clustering; many people are mentioned only as historical context.

以人為中心:自我網絡Ego networks: starting from one person

1920 年代,許多中國革命者赴歐洲與蘇聯受訓。Levine 建立 133 位領導人的資料集,用網絡與地理方法分出「歐蘇組」與「蘇聯組」,並找出重要卻較少為人所知的人物。Levine (2021). In the 1920s many Chinese revolutionaries trained in Europe and the USSR. Levine builds a dataset of 133 leaders and uses network and geographic methods to separate a Euro-Soviet and a Soviet group, and to find important but lesser-known figures.
Ego network of Zhang Wentian
Levine 2021, Fig. 11: ego network of Zhang Wentian, pruned to 1,500 ties (Soviet Returned Leaders dataset)
資料:133 位 1920 年代留學歐洲與蘇聯的革命者;找出兩組與其中的關鍵人物。133 revolutionary leaders trained in Europe and the USSR in the 1920s; two groups and key actors emerge.
提醒(Weingart):自我網絡裡,中心的人必然最中心。Reminder (Weingart): in an ego network the ego is necessarily the most central.

雙模網絡的實例A two-mode network in practice

ECPO 是海德堡大學的民國期刊資料庫。這是一篇資料庫介紹:說明如何從期刊內容(人物、文章、廣告、機構、圖像)導出網絡資料,也討論二十世紀人物資料的隱私問題。Arnold & Rudolph (2021). ECPO is Heidelberg’s database of Republican-era periodicals. This is a database paper: it shows how network data can be derived from periodical content (persons, articles, ads, organisations, images) and discusses privacy for twentieth-century actors.
Two-mode ego network of Song Qingling
Arnold & Rudolph 2021, Fig. 2: two-mode ego network of Song Qingling in ECPO
節點有多種:人物(藍)、文章(紫)、廣告(淺綠)、機構(深綠)、圖像(橘)。Several node types: persons, articles, advertisements, organisations, images.
邊只連接不同類型的節點(例如人物 ↔ 文章)。Edges link nodes of different types (e.g. person ↔ article).
多模網絡很豐富,但多數演算法只為單模設計;要把它投影成單模,或選用專門的方法。Rich, but most algorithms assume one mode: project to one mode or use methods built for multimodal data.

資料從哪裡來:資料庫與工具Where the data come from: databases and tools

CBDBChina Biographical Database

超過 47 萬人;可查詢親屬與社會關係網絡。470,000+ individuals; kinship and social networks can be queried.

中國佛教社會網絡Bingenheimer: Chinese Buddhism

約 17,500 位行動者、25,000 條連結;自三世紀末至二十世紀初。c. 17,500 actors and 25,000 links, late 3rd to early 20th century.

ECPOEarly Chinese Periodicals Online

民國期刊與人物資料;也討論隱私問題。Republican-era periodicals and biographical data; also discusses privacy.

維基百科傳記Wikipedia biographies (ENP-China)

228,144 篇中文傳記,用 NLP 抽取人名與關係。228,144 Chinese biographies, with NLP-extracted entities.
資料庫解決實體對應與大規模抽取,但邊的定義仍要由你決定。Databases help with entity identity and extraction at scale; defining the edge is still your job.

兩個警告Two warnings (Weingart)

① 有了鎚子,什麼都像釘子When you have a hammer…

軟體容易上手、資料唾手可得,於是人人都能畫出一張網絡。Easy tools and available datasets make it tempting to network everything.
問自己:這個問題真的是關於關係嗎?Ask: is this question really about relations?

② 借用方法很危險Methodology appropriation is dangerous

演算法是為別的目的設計的;原本的前提和但書,搬過來時往往丟失。Algorithms were built for other purposes; their assumptions and caveats get lost in translation.
問自己:這個指標在我的資料上代表什麼?Ask: what does this measure mean on my data?
今天的目標:學會工具,也學會在什麼時候不相信它。 Today: learn the tools, and learn when not to trust them.

網絡是一種抽象A network is an abstraction

Ahnert 等人:網絡永遠是隱喻 —— 把豐富的世界簡化成「點」與「線」。The Network Turn, ch. 1: networks are always metaphorical, reducing a rich world to points and lines.

史料Source

一封信:語氣、請託、禮物、時間、保密……A letter: tone, a favour asked, a gift, a date, a secret…
→

邊Edge

甲 — 乙(1 封信)A — B (1 letter)
保留:誰與誰有關、關係多密Kept: who is related to whom, how densely
丟掉:內容、語境、獨特性Lost: content, context, uniqueness
Weingart:歷史學者在乎差異與獨特,那正是定義成節點時最容易失去的資訊。Weingart: humanists care about what makes things unique, which is exactly what is lost when objects become nodes.

「關係」不是中國的文化本質Beyond guanxi

Chen & Rudolph, “Beyond Relationships and Guanxi: An Introduction” (2021)

問題The problem

把 guanxi 當作千年不變的「中國特質」,是去歷史化、文化本質論的說法。Treating guanxi as a millennia-old “Chinese” trait is ahistorical and culturalist.

替代方案The alternative

用可重建、可比較的網絡分析,檢驗不同時期、不同群體的關係結構。Reconstruct relations and analyse structure, comparing periods and groups.
古人也有「網絡」意識:「盤根錯節」 —— 但視為無法理清的整體。Historical actors had a sense of networks too (“entwined roots”), but saw an indecipherable whole.
現代分析者假設結構可以被梳理:定義範圍、劃分群集、計算距離。Modern analysts presume structure can be teased out: define scope, partition, count links and distances.
網絡分析是一種現代的「科學化」;真相介於兩者之間 —— 使用時要意識到自己的假設。Network analysis is a modern scientification of relations; the truth lies in between, so stay aware of your assumptions.

中心性在你的資料上是什麼意思?What does centrality mean on your data?

度 ≈ 出現次數Degree ≈ frequency

在共現網絡中,常被提到的人自然與更多人共現。度中心性幾乎等於出現頻率。In co-occurrence networks, frequently mentioned people co-occur with more people: degree tracks frequency.

文獻越長,越「中心」Longer text, more central

以主題相似度連邊的網絡,越長的書越可能與別的書相連。In a document-similarity network, longer books are more likely to share topics with others.

取樣決定結果Sampling decides

只看某人的鄰居,他必然最中心;補上更多資料,排名可能全變。An ego network makes the ego central; add more data and the ranking can change.

雙模網絡Two-mode networks

「作者—出版社」網絡中,度只是作品數量,與社交位置無關。In an author–publisher network, degree just counts publications, not social position.
先問:「這個數字在我的資料裡可能代表什麼?」再解讀。 First ask what this number could mean in your data. Then interpret.

畫網絡之前,先問自己Before you build a network, ask

1
我的問題真的是關於關係嗎?Is my question really about relations?
2
節點是什麼?人物名字是否已對應到同一個人?What is a node, and has each person been resolved?
3
邊是什麼?誰決定它算數?證據在哪裡?What is an edge, who decided it counts, and where is the evidence?
4
誰不在網絡裡?史料為何只留下這些人?Who is missing, and why did the sources keep only these?
5
這個指標在我的資料上代表什麼?What does this measure mean on my data?
6
偶然會產生同樣的結果嗎?與隨機網絡比一比。Could chance produce the same result? Compare with random networks.

工作流程與工具Workflow and tools

史料sources文集、書信、名單
→
標記taggingMARKUS
→
實體對應identityCBDB
→
節點表+邊表tablesCSV
→
分析與圖analysisGephi · Palladio · Python
↺ 回到史料:每個異常的節點,都要回頭讀原文 — go back to the sources for every surprising node

Gephidesktop app

視覺化與指標、社群、版面visualisation, metrics, communities, layouts

Palladioin the browser

上傳表格,快速出圖upload a table, explore quickly

Pythone.g. NetworkX

可重現、可抽樣、可寫檢定reproducible; supports sampling and tests

回顧Recap

1
網絡 = 節點 + 邊:一種把關係變成資料的抽象A network is nodes and edges: an abstraction that turns relations into data
2
兩張表:節點表與邊表;難處在實體對應、邊的定義、缺失與不確定Two tables; the difficulty is identity, edge definition, missing data and uncertainty
3
整體測量:密度、路徑長度、直徑Global: density, path length, diameter
4
局部測量:度、中介、接近、聚類 —— 各自回答不同的「重要」Local: degree, betweenness, closeness, clustering, each a different kind of importance
5
社群與版面:社群由結構決定;版面不是證據Communities come from structure; layout is not evidence
6
與隨機比較:像元祐、慶元一案,用抽樣檢驗「偶然」Compare to chance, as in the faction-list study