Sample two-mode network

From CCE wiki archived
Revision as of 09:18, 8 October 2019 by Michaelf (talk | contribs)
(diff) ?Older revision | view current revision (diff) | Newer revision? (diff)
Jump to: navigation, search

txt2pajek is a program that will allow you to create Pajek networks from simple text. In particular it will handle 2-mode affiliation networks.

txt2pajek input

George band
George choir
Dimitri orchestra
Dimitri band
Sarah band
Sarah choir

txt2pajek output: (selecting 2-mode)

*Vertices 6 3
1 "George"
2 "Dimitri"
3 "Sarah"
4 "band"
5 "choir"
6 "orchestra"
*Edges
1 4
1 5
2 6
2 4
3 4
3 5

pajek reads this file and generates a partition

*Partition Affiliation partition of N1 [3,3]
*Vertices 6
1
1
1
2
2
2

rectangular matrix representation

band choir orchestra
George x x
Dimitri x x
Sarah x x