Skip to content

Edgelist #5

@neenerrh

Description

@neenerrh

I tried to run the ABRW method by creating the graph using edgelist. But I encountered an error when reading the attribute file self.g_u.read_node_attr(attribute_file) File "\model\libnrl\graph.py", line 83, in read_node_attr self.G.nodes[vec[0]]['attr'] = np.array([float(x) for x in vec[1:]]) File "C:\Users\Administrator\Anaconda3\lib\site-packages\networkx\classes\reportviews.py", line 178, in __getitem__ return self._nodes[n] KeyError: '98'

But the code works fine when I used adjacency list to create the graph. Do you have any suggestion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions