Difference between revisions of "Sample two-mode network"

From CCE wiki archived
Jump to: navigation, search
 
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
*Vertices 6 3
+
[http://www.pfeffer.at/txt2pajek/ txt2pajek] is a program that will allow you to create Pajek networks from simple text.  In particular it will handle 2-mode affiliation networks.
1 "George"
+
 
2 "Dimitri"
+
= txt2pajek input =
3 "Sarah"
+
 
4 "band"
+
George band<br>
5 "choir"
+
George choir<br>
6 "orchestra"
+
Dimitri orchestra<br>
*Edges
+
Dimitri band<br>
1 4
+
Sarah band<br>
1 5
+
Sarah choir<br>
2 6
+
 
2 4
+
= txt2pajek output:''' ''(selecting 2-mode)'' =
3 4
+
 
3 5
+
<nowiki>*Vertices 6 3</nowiki><br>
 +
1 "George"<br>
 +
2 "Dimitri"<br>
 +
3 "Sarah"<br>
 +
4 "band"<br>
 +
5 "choir"<br>
 +
6 "orchestra"<br>
 +
<nowiki>*Edges</nowiki><br>
 +
1 4<br>
 +
1 5<br>
 +
2 6<br>
 +
2 4<br>
 +
3 4<br>
 +
3 5<br>
 +
 
 +
= pajek reads this file and generates a partition =
 +
 
 +
<nowiki>*Partition Affiliation partition of N1 [3,3]</nowiki> <br>
 +
<nowiki>*Vertices</nowiki> 6 <br>
 +
1<br>
 +
1<br>
 +
1<br>
 +
2<br>
 +
2<br>
 +
2<br>
 +
 
 +
= rectangular matrix representation =
 +
 
 +
{|border="1" align="left" style="text-align:left;"
 +
!
 +
! band
 +
! choir
 +
! orchestra
 +
|-
 +
|George
 +
| x
 +
| x
 +
|
 +
|-|
 +
|Dimitri
 +
|x
 +
|
 +
|x
 +
|-
 +
| Sarah
 +
|x
 +
|x
 +
|
 +
|}

Latest revision as of 09:18, 8 October 2019

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