BSH:Assign Cluster ID

The command Select Cluster allows the selection of nodes which belong to a named cluster. Such cluster IDs may be automatically assigned while loading a Pajek file with available cluster information, or while performing a cluster analysis with the SOM algorithm. With this new command, presented here, it is possible to manually asign a user given cluster ID to a set of selected nodes.

Assigned cluster information may be used for visualization and analysis purposes (see Analysis Menu).

For adding this functionality to the system, simply open a text editor and add the following source code. Save the file with the extension .bsh to your home-folder.

For example under Windows you may store the file as "c:\documents and settings\myUserAccount\setclusterid.bsh".

Under linux you may save the file to "/home/myuseraccount/setclusterid.bsh".

The corresponding menu item command "Edit/Set Cluster ID" (as defined in the first line of the source code) will be added to the system as soon as you create or open a empty editor window (File/New, File/Open).

Source Code