Base class for attribute collector subclasses. Classes that inherit this class may use a declarative syntax to specify which vertex or edge attributes they intend to collect. See
AttributeCollectorMeta for the details.
||Returns the collected attributes of the vertex/edge with the given index.|
||Constructs a new attribute collector that uses the given vertex/edge sequence and the given dict as data sources.|
||Collects graph visualization attributes from various sources.|
Returns the collected attributes of the vertex/edge with the given index.
Constructs a new attribute collector that uses the given vertex/edge sequence and the given dict as data sources.
|kwds||a Python dict that will be used to override the attributes collected from seq if necessary.|
Collects graph visualization attributes from various sources.
This method can be used to collect the attributes required for graph visualization from various sources. Attribute value sources are:
- A specific value of a Python dict belonging to a given key. This dict is given by the argument self.kwds at construction time, and the name of the key is determined by the argument specification given in attrspec.
- A vertex or edge sequence of a graph, given in self.seq
- The global configuration, given in config
- A default value when all other sources fail to provide the value. This is also given in attrspec.
|the collected attributes|