The .clu
file contains one line per node with the cluster number at least the example I see here. Gephi cannot import it directly but you can trick it to obtain the same result. Here are the steps I propose:
- Import your
.net
file with Gephi
- Go to Data Laboratory and sort your nodes according to the
Id
column, by clicking on the column name
- Create a new column called Cluster by pressing Add column the bottom of the screen. The default String type will do
- Click Export table, select only the fields Id and Cluster, and export the file somewhere
- Open the CSV file with e.g. Excel or LibreOffice
- Open your
.clu
file with a text editor, even Notepad will do
- Copy all the numbers in the file and paste them in the Cluster column of your CSV. Save your CSV
- Import the CSV back into Gephi, by clicking Import Spreadsheet and press ok through the next steps.
At the end you should see your Cluster values having the same values as in the .clu
file!
Make sure that the same field delimiter is used throughout in steps 4. and 8. I would suggest to use ;
as Excel directly understands it.
You are welcome to report back if you are still having problems