VertexPropertyContainer#
- class VertexPropertyContainer(properties=None)[source]#
Bases:
objectContainer for managing custom vertex properties with automatic synchronization.
- Parameters:
- propertiesdict of str -> np.ndarray, optional
Dictionary mapping property names to vertex data arrays.
Attributes
List available vertex properties.
Methods
Create a deep copy of the container.
VertexPropertyContainer.get_property(name[, ...])Get property data by name.
VertexPropertyContainer.merge(containers)Merge multiple property containers.
VertexPropertyContainer.remove_property(name)VertexPropertyContainer.set_property(name, data)Insert or replace a vertex property.
- classmethod merge(containers)[source]#
Merge multiple property containers.
- Parameters:
- containerslist of VertexPropertyContainer
Containers to merge
- Returns:
- VertexPropertyContainer
New container with merged properties
- property properties#
List available vertex properties.