I am new to Gephi and my question might reflect that.
How can I give the nodes color according to their attributes (e.g. gender or department)? Seems difficult - is it because I work from a .net file?
Jens
[SOLVED] Color and attributes
-
- Posts:4
- Joined:05 Aug 2010 11:29 [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
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: Color and attributes
Hi,
Gephi doesn't import attributes from .net files, only the graph structure: http://gephi.org/users/supported-graph- ... et-format/
Gephi doesn't import attributes from .net files, only the graph structure: http://gephi.org/users/supported-graph- ... et-format/
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [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: Color and attributes
Yes you can use for instance GDF or GML to add attributes to each of your nodes. Then use the Partition module to use these data to color each part in a different color.
- hameleon-ed
- Posts:4
- Joined:15 Sep 2010 11:14
- Location:Russia, Moscow [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: Color and attributes
What is it GDF or GML? How is it use?mbastian wrote:Yes you can use for instance GDF or GML to add attributes to each of your nodes.
-
- Gephi Community Manager
- Posts:964
- Joined:09 Dec 2009 14:41 [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: Color and attributes
More information here: http://gephi.org/users/supported-graph-formats/
Re: Color and attributes
I've used my own partitioning algorithm in R and imported the resulting network using GraphML. The partition data is an integer (0-26).
While the data is recognized for ranking, Gephi does not seem to recognize the data for partitions. It does not show up in the drop down in the partition module. Is there a way I can get it to show up as a partition.
Coloring partitions using ranking is not ideal.
While the data is recognized for ranking, Gephi does not seem to recognize the data for partitions. It does not show up in the drop down in the partition module. Is there a way I can get it to show up as a partition.
Coloring partitions using ranking is not ideal.
- mbastian
- Gephi Architect
- Posts:728
- Joined:10 Dec 2009 10:11
- Location:San Francisco, CA [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: Color and attributes
Partition has a little trick to differentiate partitions data from columns like IDs
A column is a partition if the number of different values is not more than 9/10 of total values. In other words if you have 10 rows and 10 different values it's not a partition. If you have 5 different values in 10 rows, it is.
That's probably why Partition don't find your column
A column is a partition if the number of different values is not more than 9/10 of total values. In other words if you have 10 rows and 10 different values it's not a partition. If you have 5 different values in 10 rows, it is.
That's probably why Partition don't find your column