Communities & cliques

Introduktion till nätverksanalys i Python

Eric Ma

Data Carpentry instructor and author of nxviz package

Klicker

  • Sociala klicker: tätt sammansvetsade grupper
  • Nätverksklicker: fullständigt sammankopplade grafer

En klickgraf. Varje nod är kopplad till alla andra noder.

Introduktion till nätverksanalys i Python

Klicker

  • Enklaste komplexa klicken: en triangel

En klickgraf med tre noder, som ser ut som en triangel.

Introduktion till nätverksanalys i Python

Tillämpningar av trianglar

  • Vänrekommendationssystem

En graf med tre noder. En nod är kopplad till de två andra. En streckad linje visas mellan de två noder som saknar kantförbindelse.

Introduktion till nätverksanalys i Python

Klickkod

G
<networkx.classes.graph.Graph at 0x10c99ecf8>
from itertools import combinations

for n1, n2 in combinations(G.nodes(), 2): print(n1, n2)
0 1
0 2
0 3
0 4
0 5
...
Introduktion till nätverksanalys i Python

Nu kör vi en övning!

Introduktion till nätverksanalys i Python

Preparing Video For Download...