Skip to content

TypeError: 'int' object has no attribute '__getitem__' #2

@zuozijiZHOULI

Description

@zuozijiZHOULI

Traceback (most recent call last):
File "link_prediction.py", line 548, in
test_edge_functions(args)
File "link_prediction.py", line 322, in test_edge_functions
Gtrain, Gtest = create_train_test_graphs(args)
File "link_prediction.py", line 300, in create_train_test_graphs
directed=args.directed)
File "link_prediction.py", line 109, in read_graph
G.edges[edge[0]][edge[1]]['weight'] = 1
TypeError: 'int' object has no attribute 'getitem'

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