visual - Daria-Maltseva/pajek GitHub Wiki
Informal communication within a sawmill on strike
Strike.net
: 24 vertices (employees), 38 edges (discussed the strike in some minimum frequency), no arcs, no loops, no line values.
Strike_groups.clu
: classification of the (24) employees according to age and ethnic group:
- Spanish-speaking employees
- Young (30 or younger) English-speaking employees
- Old (over 30) English- speaking employees
Strike.paj
: Pajek project file containing both files.
Draw -- Network
Draw -- Network + 1st Partition
Picture: Options --
- Mark vertices using -- ...
- Lines -- ...
- Size -- ...
- Size -- of Fonts -- Use Third Partition for Font Size (Mark Vertices using labels, and nothing else should be chosen)
- Colors -- ...
- Colors -- Partition colors -- For vertices [select each color according to the numbers of partitions]
Export -- 2D -- JPEG -- RUN - the same picture
Export -- 2D -- SVG -- General -- the picture may be different, opens in browser
SVG -- Scalable Vector Graphics; EPS -- Encapsulated PostScript.
Export -- Options
- EPS/ SVG vertex default
** Shapes -- can be applied if no different shapes are specified in the net file
** Exporting options overwrite Shapes files -- should be chosen - EPS/ SVG line default
** Besier curves: to have a straight line: Angle1 = 0, Velocity1 = 1, Angle2 = 0, Velocity2 = 1; for curves, try: Angle1 = 10, Velocity1 = 1, Angle2 = 10, Velocity2 = 1. - EPS/ SVG/ X3D/ VRML Size of vertices
- Background colors
- EPS Border
Can be useful for better graphs representattion:
Network - Create new network - Transform - Sort lines - Line values - Descending
Open the net.
file and make changes there, after the vertices / edges / arcs:
*Vertices
....
6 "John" 0.3337 0.5746 0.5000 WRITE HERE
% serial number of node, title, coordinates
...
*Edges
2 3 1 WRITE HERE
%first node, second node, line weight
...
*Arcs
1 4 1 WRITE HERE
%first node, second node, line weight
Vertices:
- ic - interior color
- bc - border color
- bw - border width
- phi - shape angle
- x_fact / y_fact - x/y ratio
- fos - font size
- la - label angle
Label position: - lr - polar radius
- lphi - polar angle
- Shapes: ellipse, box, diamond, triangle, cross, house, man, woman, empty
- Colors
** Different formats: RGBFFCC00, RGB(1,0.8,0), CMYK0033FF00, CMYK(0,0.2,1,0)
** Names of the colors in Pajek (you can simply write them) - Pajek manual page 103
** be sure to choose Options -- Colors -- Vertices / Vertcies border / Arcs / -- As defined in input file
*Vertices 24
1 "Frank" 0.0410 0.6175 0.5000 man ic RGB(1,0.8,0) bc RGB(1,1,0) bw 3 phi 90 fos 20 la 90 lr 10 lphi 336
Edges
- color - c
- p - dots / solid
- w - width
- s - arrow size
- fos - font size
- lp - label position Label position
- lr - label pos. radius
- lphi - label pos. angle
- la - label angle
*Edges
1 2 1 c Gray95 p Dots w 2 fos 20 lp 0.6 lr 10 la 270
Arcs
- ap - arrowhead position on the line
*Arcs
2 3 1 ap 0.5
** For edges and arcs the options should be specified on each line separately (or, if you want some options for ALL the lines, use the window Options
in Export
).
Add: Options -- Mark Vertices Using -- Cluster Symbols of Second Partition
Select Symbols: Options -- Symbols for Partition Clusters
Size: Options -- Size of Symbols -- Select (window opens: 0.75 = 75% of vertex size; negative value -20 = absolute size in pixels, 20 is a recommended value)
** to make vertices invisible: draw the network without partition, set vertices border = 0, and vertices color = white; there should not be any specification on the colors of the nodes inside the net file.
For the task from the Seminar 1. Data input and basic visualization to reproduce the proposed picture you should get the following network description:
*Vertices 7
1 "1\nJoel" 0.5087 0.4023 0.5000 triangle bw 2 bc Black
2 "2\nSue" 0.6371 0.1447 0.5000 ellipse bw 2 bc Black
3 "3\nDiane" 0.3352 0.2041 0.5000
4 "4\nMark" 0.4723 0.7033 0.5000 triangle bw 2 bc Black
5 "5\nBob" 0.6371 0.7308 0.5000
6 "6\nCynthia" 0.3352 0.5485 0.5000 ellipse bw 2 bc Black
7 "7\nLynn" 0.6918 0.4023 0.5000
*Arcs :1 "Rejection"
3 6 1 c Gray75 p Dots
6 2 1 c Gray75 p Dots
5 2 1 c Gray75 p Dots
*Arcs :2 "Attraction"
3 1 1 c Black p solid
6 1 1 c Black p solid
7 1 1 c Black p solid
7 4 1 c Black p solid
5 3 1 c Black p solid
*Edges :3 "Mutual Rejection"
2 3 1 c Gray75 p Dots
*Edges :4 "Mutual Attraction"
1 2 1 c Black p solid
2 4 1 c Black p solid
3 4 1 c Black p solid