python-igraph manual

For using igraph from Python

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

Module configuration

source code

Configuration framework for igraph.

igraph has some parameters which usually affect the behaviour of many functions. This module provides the framework for altering and querying igraph parameters as well as saving them to and retrieving them from disk.


License: Copyright (C) 2006-2012 Tam\xc3\xa1s Nepusz <ntamas@gmail.com> P\xc3\xa1zm\xc3\xa1ny P\xc3\xa9ter s\xc3\xa9t\xc3\xa1ny 1/a, 1117 Budapest, Hungary This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Classes [hide private]
  Configuration
Class representing igraph configuration details.
Functions [hide private]
 
get_platform_image_viewer()
Returns the path of an image viewer on the given platform
source code
 
get_user_config_file()
Returns the path where the user-level configuration file is stored
source code
 
init()
Default mechanism to initiate igraph configuration
source code
Variables [hide private]
  __package__ = 'igraph'

Imports: SafeConfigParser, platform, os


Function Details [hide private]

init()

source code 

Default mechanism to initiate igraph configuration

This method loads the user-specific configuration file from the user's home directory, or if it does not exist, creates a default configuration.

The method is safe to be called multiple times, it will not parse the configuration file twice.

Returns:
the Configuration object loaded or created.

   Home       Trees       Indices       Help