roksana.attack_methods.registry
Attack Methods Registry
This module provides a registry for managing attack methods. It includes predefined attack methods and utilities to register custom attack methods dynamically.
- Classes:
DegreeAttack: Implements degree-based edge removal.
PageRankAttack: Implements PageRank-based edge removal.
RandomAttack: Implements random edge removal.
VikingAttack: Implements Viking perturbation attack.
- Functions:
register_attack_method: Decorator to register a custom attack method.
get_attack_method: Retrieve an instance of a registered attack method.
Functions
|
Retrieve an instance of the specified attack method. |
|
Decorator to register an attack method class with a given name. |