Importing degree attribute or node size properties

Get help with your data
Post Reply [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
jonswords
Posts:8
Joined:23 Oct 2011 13:27
[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
Importing degree attribute or node size properties

Post by jonswords » 17 Sep 2016 20:48

Is it possible to import a a node table which specifies the size of a node, either by having a pre-filled 'degree' column or a size property?

User avatar
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: Importing degree attribute or node size properties

Post by eduramiba » 18 Sep 2016 21:31

You could use that column in appearance window to size the nodes.

jonswords
Posts:8
Joined:23 Oct 2011 13:27
[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: Importing degree attribute or node size properties

Post by jonswords » 19 Sep 2016 15:38

That doesn't work - every node just resizes to the same size. Do i need to specify that column as a particular type? The default is 'string'.

User avatar
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: Importing degree attribute or node size properties

Post by eduramiba » 19 Sep 2016 17:18

Yes, it should be a numeric column, integer for example. Also make sure not to apply the unique size mode, but the attribute mode, which uses a column.

jonswords
Posts:8
Joined:23 Oct 2011 13:27
[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: Importing degree attribute or node size properties

Post by jonswords » 19 Sep 2016 20:46

Thanks. Integer doesn't work, but double does.

Post Reply
[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
[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