python-igraph manual

For using igraph from Python

   Home       Trees       Indices       Help   
Package igraph :: Module configuration :: Class Configuration :: Class Types
[hide private]

Class Types

source code

object --+
         |
        Configuration.Types

Static class for the implementation of custom getter/setter functions for configuration keys

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
setboolean(obj, section, key, value)
Sets a boolean value in the given configuration object.
source code
 
setint(obj, section, key, value)
Sets an integer value in the given configuration object.
source code
 
setfloat(obj, section, key, value)
Sets a float value in the given configuration object.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

setboolean(obj, section, key, value)
Static Method

source code 

Sets a boolean value in the given configuration object.

Parameters:
  • obj - a configuration object
  • section - the section of the value to be set
  • key - the key of the value to be set
  • value - the value itself. 0, false, no and off means false, 1, true, yes and on means true, everything else results in a ValueError being thrown. Values are case insensitive

setint(obj, section, key, value)
Static Method

source code 

Sets an integer value in the given configuration object.

Parameters:
  • obj - a configuration object
  • section - the section of the value to be set
  • key - the key of the value to be set
  • value - the value itself.

setfloat(obj, section, key, value)
Static Method

source code 

Sets a float value in the given configuration object.

Note that float values are converted to strings in the configuration object, which may lead to some precision loss.

Parameters:
  • obj - a configuration object
  • section - the section of the value to be set
  • key - the key of the value to be set
  • value - the value itself.

   Home       Trees       Indices       Help