I'm totally new to Gephi and I have already problems ... at first with the data preparation.
I have the following data (sample):
What I want to do is to show a correlation between the keywords and the classes. So actually it should be a simple task but I don't get it.
Classes are from 0 to 10 and an individual keyword can occur multiple times and can be connected to different classes.
For example:
"Keyword 1" can have a connection to "Class 1" and "Class 6"
"Keyword 2" can have a connection to "Class 2"
"Keyword 4" cann have a connection to "Class 8", "Class 6" and "Class 2" and so one.
What I want to do, is to show the classes as nodes and the keywords around them. They are connected with a line which has a different thickness depending on the number of connections of the respective keyword with the class.
Example with paint
I am totally lost I hope anyone can help me with that.
Data preparation to show correlation beetween classes and keywords
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Data preparation to show correlation beetween classes and keywords
You can use spreadsheet import and name your classes and keywords columns as source and target.
https://gephi.org/users/supported-graph ... readsheet/
https://gephi.org/users/supported-graph ... readsheet/
-
- Posts:4
- Joined:01 Oct 2017 15:32 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Data preparation to show correlation beetween classes and keywords
Thanks for your fast reply.
But I'm a "little" bit confused:
The keywords shouldn't have a connection among each other but only to the classes.
So I have created the following two files.
Nodes.txt as UTF8 with BOM
Edges.txt as UTF8 with BOM But if I want to import the edges table, I am getting the error message: Edges table needs a 'Source' and 'Target' column with nodes ids
But I'm a "little" bit confused:
The keywords shouldn't have a connection among each other but only to the classes.
So I have created the following two files.
Nodes.txt as UTF8 with BOM
Edges.txt as UTF8 with BOM But if I want to import the edges table, I am getting the error message: Edges table needs a 'Source' and 'Target' column with nodes ids
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Data preparation to show correlation beetween classes and keywords
Hi,
Try to use .csv (or even .xlsx) extension. Also never include the BOM.
Try to use .csv (or even .xlsx) extension. Also never include the BOM.
-
- Posts:4
- Joined:01 Oct 2017 15:32 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Data preparation to show correlation beetween classes and keywords
Ahhh thanks!!
As .txt file without BOM it is working.
Now I can test a bit.
Thanks again!
Another question... I have about ~4 million keywords for this 10 classes. Are they too many, or could it work?
As .txt file without BOM it is working.
Now I can test a bit.
Thanks again!
Another question... I have about ~4 million keywords for this 10 classes. Are they too many, or could it work?
- eduramiba
- Gephi Code Manager
- Posts:1064
- Joined:22 Mar 2010 15:30
- Location:Madrid, Spain [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Re: Data preparation to show correlation beetween classes and keywords
Are you still using 0.9.1? 0.9.2 is newer and more stable and friendly but you will have to change the extension from txt to csv (no changes required to the file).
4 million should work but you might need to increase gephi memory limit in gephi.conf
4 million should work but you might need to increase gephi memory limit in gephi.conf