Skip to content

CalculateVertexHistKernel(): NameError: name 'gs' is not defined #23

Description

@Mapabin

Hello,

I've created a list of directed igraphs with several attributes for each vertex. Applying the CalculateVertexHistKernel - function, I receive the following error:

Traceback (most recent call last):
K = gk.CalculateVertexHistKernel(data1)
File "/usr/local/lib/python3.7/site-packages/graphkernels/kernels.py", line 42, in CalculateVertexHistKernel
E, V_label, V_count, E_count, D_max = GetGKInput(G)
File "/usr/local/lib/python3.7/site-packages/graphkernels/utilities.py", line 79, in GetGKInput
g_info = GetGraphInfo(G[i])
File "/usr/local/lib/python3.7/site-packages/graphkernels/utilities.py", line 51, in GetGraphInfo
v_attr_name = gs.vs.attributes()[0]
NameError: name 'gs' is not defined

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions