First Steps to Network Visualization with Pajek

Vladimir Batagelj University of Ljubljana Slovenia

University of Konstanz, Analysis of Political and Managerial Networks May 21, 2002, 16h, room C 424

Index Pajek Reading data from a file Pajek’s data files Visualization         .

for noncommercial use. we started to develop Pajek in November 1996. for analysis of large networks. for Windows (32 bit). at its homepage: http://vlado. With Andrej Mrvar.fmf.Pajek Pajek (Slovene word for Spider) is a program.si/pub/networks/pajek/ When you download its installation program you simply run it and it will install Pajek in the selected directory. Pajek is freely available.uni-lj. . Some procedures were contributed by Matjaˇ z Zaverˇ snik.

Pajek supports several other formats: UCINET DL.             . cluster – subset of vertices (e. and some molecular formats: BS (Ball and Stick).g. Run Pajek. genealogical GED. Pajek is organized as a ’calculator’ for network data: network – main object (vertices and lines). a cluster from partition).Input Data Besides its own input formats. partition – to which cluster a vertex belongs. vector – values of vertices. You will get the main window – see next slide. MAC (Mac Molecule) and MOL (MDL MOLfile). permutation – reordering of vertices. hierarchy – hierarchically ordered clusters and vertices.

Pajek’s Main and Report Windows .

Reading Data from a File The power of Pajek is based on several transformations which support different transitions among these data types. For example. the type UCINET DL files (*. The draw window appears with a picture of the current network. Click on the first icon of the ’Network register’ and in the dialog box select the right file type. you will get a new network in the Network register and report about the reading in the report window. you can draw the network using the Draw/Draw option in the main window. Now. If everything is OK. and request its reading by click on Open. for Ucinet data.dat) find your file on the disk. .

Pajek’s Draw Window .

htm. .. *edges the edge from  ¡ § ¡¢ £¤ ¦ the arc from to has value § ¨ ©  ©  ¨  ©  to has value  ©     . The file can contain several additional elements – see Draweps..net that has the following basic structure: *vertices " 1 " ..... " " *arcs ¡ ¡¢ £¤ ¥ is the number of vertices the label of vertex 1 is ¡¢ £¤ ¡ ¥ .Pajek’s Data / NET The network is described on the file file.

© §  PERmutation – ordering of vertices IN : vertex is at the -th position.Pajek’s Data / CLU.. § ©  . PER All three types of files have the same structure: *vertices © ¥ is the number of vertices vertex 1 has value © ¥ ¡ ¡ . VEC.. § ©       © ¦ © © © VECtor – numeric data about vertices IR : the property has value on vertex . CLUstering – partition of vertices – nominal or ordinal data about vertices IN : vertex belongs to the cluster .

per *vertices 20 1 2 3 4 5 10 11 6 12 9 7 8 18 19 20 13 14 15 16 17 ..clu *vertices 20 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 age.Example: Wolfe Monkey Data inter.net 1 4 4 1 5 5 1 6 5 1 7 9 1 8 7 1 9 4 1 10 3 1 11 3 1 12 7 1 13 3 1 14 2 1 15 5 1 16 1 1 17 4 1 18 1 2 3 5 2 4 1 2 5 3 2 6 1 2 7 4 2 8 2 2 9 6 2 10 2 2 11 5 2 12 4 2 13 3 2 14 2 2 15 2 2 .vec *vertices 20 15 10 10 8 7 15 5 11 8 9 16 10 14 5 7 11 7 5 15 4 rank. 6 2 17 3 2 18 1 2 19 1 3 4 8 3 5 9 3 6 5 3 7 11 3 8 7 3 9 8 sex. 16 .net *Vertices 20 1 "m01" 2 "m02" 3 "m03" 4 "m04" 5 "m05" 6 "f06" 7 "f07" 8 "f08" 9 "f09" 10 "f10" 11 "f11" 12 "f12" 13 "f13" 14 "f14" 15 "f15" 16 "f16" 17 "f17" 18 "f18" 19 "f19" 20 "f20" *Edges 1 2 2 1 3 10 1 4 4 1 5 5 1 6 5 1 7 9 1 8 7 1 9 4 1 10 3 1 11 3 1 12 7 1 13 3 1 14 2 1 15 5 10 "f10" 11 "f11" 12 "f12" 13 "f13" 14 "f14" 15 "f15" 16 "f16" 17 "f17" 18 "f18" 19 "f19" 20 "f20" *Edges 1 2 2 1 3 10 inter.

compute some additional data. delete (dispose) some data. Pajek supports also two-mode and temporal networks.paj. . The easiest way to do this is: read all data files in Pajek. save all as a project file with File/Project file/Save.Pajek’s Data / PAJ All types of data can be combined into a single file – Pajek’s project file file. Next time you can restore everything with a single File/Project file/Read.

Move/Grid. You can try to get better picture using automatic layout methods from the Layout menu. they are displayed on the circle. Use also Options/* to determine what and how is displayed. The options Move/Fix. y. Use x.Visualization of Network Data You enter the draw window selecting some of the options in the Draw menu in the main window. . You can further improve the picture manually by moving vertices with the mouse. Pajek supports 2D and 3D layouts. If the vertices have no positions yet. Options/Transform/* can be useful. z keys to rotate the picture in 3D.

.Visualization of Partitions and Vectors Partitions can be visualized by colors of vertices. The value of lines can be displayed as number Options/Lines/Mark lines/with Values or as the width of lines Options/Lines/Different Widths. Transformations on and between partitions and vectors are available. Vectors by the size of vertices or by their position. Operations/Vector/Put Coordinate/*. Draw/Draw Partition. Draw/Draw Vector.

de .naturfoto-online.Sources The spider (Gartenkreuzspinne / Araneus diadematus) photo from the title page was made by Stefan Ernst http://www.

Sign up to vote on this title
UsefulNot useful