Skip to content

Instantly share code, notes, and snippets.

@kuzeko
Created February 7, 2018 11:40
Show Gist options
  • Save kuzeko/eee451866a4843ffa8800cfdbbcf01f8 to your computer and use it in GitHub Desktop.
Save kuzeko/eee451866a4843ffa8800cfdbbcf01f8 to your computer and use it in GitHub Desktop.
GraphViz representation of [Zachary's karate club](https://en.wikipedia.org/wiki/Zachary's_karate_club)
graph G {
node [shape=box, fixedsize=true, width=0.7, fontname="Arial"]
size="10,10";
edge[arrowhead="none"];
ratio=compress;
subgraph cluster_0 {
node [style="rounded,filled",color=lightblue];
style="";
9
10
15
16
19
21
23
24
25
26
27
28
29
30
31
32
33
34
}
subgraph cluster_1 {
node [style=filled,color=pink];
1
2
3
4
5
6
7
8
11
12
13
14
17
18
20
22
}
2 -- 1
3 -- 1
3 -- 2
4 -- 1
4 -- 2
4 -- 3
5 -- 1
6 -- 1
7 -- 1
7 -- 5
7 -- 6
8 -- 1
8 -- 2
8 -- 3
8 -- 4
9 -- 1
9 -- 3
10 -- 3
11 -- 1
11 -- 5
11 -- 6
12 -- 1
13 -- 1
13 -- 4
14 -- 1
14 -- 2
14 -- 3
14 -- 4
17 -- 6
17 -- 7
18 -- 1
18 -- 2
20 -- 1
20 -- 2
22 -- 1
22 -- 2
26 -- 24
26 -- 25
28 -- 3
28 -- 24
28 -- 25
29 -- 3
30 -- 24
30 -- 27
31 -- 2
31 -- 9
32 -- 1
32 -- 25
32 -- 26
32 -- 29
33 -- 3
33 -- 9
33 -- 15
33 -- 16
33 -- 19
33 -- 21
33 -- 23
33 -- 24
33 -- 30
33 -- 31
33 -- 32
34 -- 9
34 -- 10
34 -- 14
34 -- 15
34 -- 16
34 -- 19
34 -- 20
34 -- 21
34 -- 23
34 -- 24
34 -- 27
34 -- 28
34 -- 29
34 -- 30
34 -- 31
34 -- 32
34 -- 33
overlap=false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment