I'd like to extend the igraph Vertex class with some extra variables methods I need for a simulation study. However, when I try to import and extend the vertex class, I get an error.
from igraph import Vertex
v = Vertex()
TypeError: cannot create 'igraph.Vertex' instances
Likewise, the same error occurs when I try to extend the class.
from igraph import Vertex
class MyVertex(Vertex):
def __init__(self):
super().__init__()
my_vertex = MyVertex()
TypeError: cannot create 'MyVertex' instances
How can I instantiate igraph vertices and extend the igraph Vertex class?