I'm trying to get into the python bindings for libgexf, and I'm having two issues atm.
First, using data.setNodeValue('1', '0' '2') does not work, it expects 4 arguments. If I use a fourth blank arguments it seems to behave. How do I call this function correctly?
Second, I can't figure out how to set the attributes in the VIZ module (e.g. size). Are these not supported?
Python bindings & VIZ module
-
- 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: Python bindings & VIZ module
Hi,
In Python there is always the "self" argument taken into account. So this method has 4 arguments: data.setNodeValue(self, '1', '0', '2'). Therefore I'll check the bindings tomorrow.
Which versions of libgexf and Python do you use?First, using data.setNodeValue('1', '0' '2') does not work, it expects 4 arguments. If I use a fourth blank arguments it seems to behave. How do I call this function correctly?
In Python there is always the "self" argument taken into account. So this method has 4 arguments: data.setNodeValue(self, '1', '0', '2'). Therefore I'll check the bindings tomorrow.
They are not.Second, I can't figure out how to set the attributes in the VIZ module (e.g. size). Are these not supported?
-
- Posts:2
- Joined:17 May 2010 17:28 [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: Python bindings & VIZ module
Python 2.6 and libgexf 0.1.2 from source.admin wrote:Which versions of libgexf and Python do you use?
I see. Did not expect that, but I have no experience with SWIG...admin wrote:In Python there is always the "self" argument ...