Practical Examples - 9 July 2013 PDF
Practical Examples - 9 July 2013 PDF
of the txt-file (dont forget to define whether you work with a directed or undirected network and
whether it is a one-mode or a two-mode network!).
The line values can be continuous (age, number of communications, monetary values of transactions
among firms, etc.) or are coded at a categorical scale (with 0 signifying no relation, 1 a type of relation, 2
another type of relation, etc.).
Optics
Once you have drawn your network in Pajek, you can use different commands to adapt the appearance:
- Use the algorithms in the Layout menu for positioning vertices (e.g. Layout->Energy->Kamada
Kawai)
- Display line values as line thickness: Options->Lines->Different Width
- Mark vertices using different labes: Options->Mark vertices->
o ->labels
o ->vector values (if you are also displaying a vector)
o ->partition clusters (if you are also displaying a partition)
- Choose colors of vertices: Options->Colors->Vertices; choose color;
- You can also define the color for the background, the vertex borders, the arcs and edges
- If you use a partition, you can choose the colors assigned to each cluster in the partition in
Options->Colors->Partition colors->for Vertices; click on the color you want to change and enter
the number of the color you want to assign
- Export the network view as images using the Export menu
2
Troubleshooting
My network view (after drawing it) does not show any lines?
Did you import a .net file as network (or by mistake a .clu file)? Is it the correct one?
Check in Options->Lines->Draw lines whether your line type (edges or arcs or both) is correct. If
you only display arcs, but you have an undirected networks only containing edges, then no lines
are displayed.
My vertices are invisible?
Are you using a vector in the drawing whose values might be zero (inspect with the values of the
vector using the magnifying glass symbol
Try Options->Mark vertices using->labels
Try Options->Size->of Vertices; you can specify the base size of the vertices here, meaning that
if you use vector values to determine vertex size, the values will still be used, but are multiples of
a base size that you can specify here.
Centrality
Calculate centrality measures: Network->Create Vector->Centrality->
-
Degree
Closeness
Betweenness
The result is a vector with the numerical values of the centrality measures. You can draw the
Network (and the partition) and the vector using the Draw menu (Draw Network+First Vector
or Network+First Partition+First Vector etc). The vector values are displayed as vertex size. If the
vertices are very small (e.g. because of normalized centrality measures e.g. in the case of
closeness or betweenness centrality), then you can use multiplication to make the vertices
bigger:
Vector->Transform->Multiply by
Draw network and vector again
Roles
Operations -> Network+Partition -> Brokerage roles (between institutions, between courses)
The data on the roles (to what degree do vertices fulfill the role we are looking at) are saved in
five vectors that are created right after carrying out the ->Brokerage roles command;
You can discplay the network with the vector for the specific role (representative etc) and the
partition displaying institutional affiliation etc (Draw->Network+First Partition+First Vector)
The size of the vertex shows the degree to which an actor fulfills a role
It might be useful to multiply the vector to get vertices of a reasonable size (Vector->Transform>Multiply by)
Take into account that in undirected networks, representative and gatekeeper positions are the same.
For the liaison function, at least three groups have to be defined in the partition
Cores
You can calculate cores in a network by using this command:
Network -> Create Partition -> k-cores
The cores are translated into a partition that you can draw. Remember that a 2-core ,for instance
,consists of all vertices with links to at least 2 other vertices, a 3-core of vertices to at least 3 other
vertices, etc.
Block modeling
Network->Create Partition->Blockmodelling (e.g. Random Start)
Choose equivalence model
Run
block model appears as a new partition
Inspect .clu-file
Import partition
Partition -> info
Draw network and partition (Draw->Network+First Partition)
[if labels are not visible: Options->Mark Vertices Using->Labels)
Change vertex colors: options -> colors -> partition colors -> for vertices | adjust | redraw
Inspect .vec-file
Import vector
Vector -> Info
Draw network | ?
Adjust vertex size: Vector -> Transform -> Multiply by -> e.g. 0.02
Play with Layout again (Fruchterman Reingold -> 2D)