List of all classes, functions and methods in python-igraph
class ShapeDrawerDirectory:
Static class that resolves shape names to their corresponding shape drawer classes.
Classes that are derived from ShapeDrawer
in this module are automatically registered by ShapeDrawerDirectory
when the module is loaded for the first time.
Class Method | register |
Registers the given shape drawer class under the given names. |
Class Method | register_namespace |
Registers all ShapeDrawer classes in the given namespace |
Class Method | resolve |
Given a shape name, returns the corresponding shape drawer class |
Class Method | resolve_default |
Given a shape name, returns the corresponding shape drawer class or the given default shape drawer if the shape name is unknown. |
Class Variable | known_shapes |
Undocumented |
Parameters | |
drawer_class | the shape drawer class to be registered |
ShapeDrawer
classes in the given namespaceParameters | |
namespace | a Python dict mapping names to Python objects. |
Parameters | |
shape | the name of the shape |
Returns | |
the corresponding shape drawer class | |
Raises | |
ValueError | if the shape is unknown |
Parameters | |
shape | the name of the shape |
default | the default shape drawer to return when the shape is unknown |
Returns | |
the shape drawer class corresponding to the given name or the default shape drawer class if the name is unknown |