python-igraph API reference

List of all classes, functions and methods in python-igraph

class documentation

class AttributeSpecification:

View In Hierarchy

Class that describes how the value of a given attribute should be retrieved.

The class contains the following members:

  • name: the name of the attribute. This is also used when we are trying to get its value from a vertex/edge attribute of a graph.
  • alt_name: alternative name of the attribute. This is used when we are trying to get its value from a Python dict or an igraph.Configuration object. If omitted at construction time, it will be equal to name.
  • default: the default value of the attribute when none of the sources we try can provide a meaningful value.
  • transform: optional transformation to be performed on the attribute value. If None or omitted, it defaults to the type of the default value.
  • func: when given, this function will be called with an index in order to derive the value of the attribute.
Class Variable __slots__ Undocumented
Method __init__ Undocumented
Instance Variable name Undocumented
Instance Variable default Undocumented
Instance Variable alt_name Undocumented
Instance Variable transform Undocumented
Instance Variable func Undocumented
Instance Variable accessor Undocumented
__slots__ =

Undocumented

(type: tuple[str, ...])
def __init__(self, name, default=None, alt_name=None, transform=None, func=None):

Undocumented

name =

Undocumented

default =

Undocumented

alt_name =

Undocumented

transform =

Undocumented

func =

Undocumented

accessor =

Undocumented

API Documentation for python-igraph, generated by pydoctor 21.2.2 at 2021-10-18 16:23:19.