Set the nodes’ position in the graph

Homm-sw automatically generates the interactive graph viewed in your story net, both in the browse&print home page and in each clip page.

At present, to set the nodes’ position in the graph it is necessary to use Pajek, a free web application for graph drawing and analysis.

With Pajek you set the position of the nodes that you consider the most appropriate (graphically and conceptually)


1) Download Pajek
Download the appropriate version of Pajek according the characteristics of your computer

Please note that Pajek is only available for Windows. However, it can be opened in the Mac operating system using a wrapper software like wineskin:

2) Export the file created in the Pajek section of your storynet
In the Admin menu
Click on Activity editor > Search for the storynet in which you want draw the graph
Click on Edit for the storynet you want to modify

At the bottom of the activity editor page there is the Pajek section where yo can export the two files (Network and Partitions) to be imported in Pajek for drawing the graph:

(a) Network
Click on Export Pajek File to dowload the .txt file with the Network (i.e. nodes and edges) of your storynet

(b) Partitions

b1. Select a Tag key for partition: write the exact name for the tag used for partition. At present there is only one tag that is associated to partitions. The values of this tag key are the categories used in the XML Properties to associate colours to each category
eg, in English: Thematic area

sarebbe utile che si potesse vedere solo i tag su cui fare la partition, sembra invece che qualunque tag vada bene, ma al momento se c’è solo una partizione possibile [EZ]

b2) Click on Export Pajek Partition file to dowload the .txt file with partitions

b3) Ppen the file, read the instructions and remove all the characters beyond the last figure, blanks included

b4) Save the file with extension .clu

4) Open the Pajek application to draw and export the graph

a) Open Pajek

b) Open the Network file by selecting from the drop down menu:
File > Network > Read > choose your file

c) Open the Partition file by selecting from the drop down menu:
File > Partition > Read > choose your file

c) To obtain the network graph, select from the drop down menu:
Draw > Network + First Partition
This opens up a new window which displays your graph.
For each clip the title and the colour of the partition are visible.

You could change the sizes and colours of vertices and edges, etc. but this is not relevant for Homm-sw, since all these features are already fixed.

You can move the positions of vertices (and related edges) manually.
We suggest to use first a quick way to obtain a good graph layout, by selecting from the drop down menu:
  Layout > Energy > Kamada-Kawaii > Separate components
In this way nodes are gruped according the partition
Then you may change manually the position of the nodes according your needs.

When new nodes are added, it could be enough to make only the manual adjustment of theri position, wthout redrawing the network through the Kamada-Kawaii routine.

d) Export the Network graph to be used in your storynet
Close the graph window to go in the main Pajek’s menu page
Save the Network graph from the drop down menu:
File > Network > Save > choose a file name. Your file will be saved as a .net file
This will save the network with the latest set of co-ordinates for the network nodes of your storynet

6) Import the Network file in Homm-sw
In the Pajek section >Import Pajek File > select the file  .net you have saved

Confirm the changes by clicking on Save

NB cose da cambiare [EZ]
>> le istruzioni sono in italiano anche nella parte in inglese


The interactive network is now available in the browsing&print page of your storynet