When generating a Gnp graph with no edges the following error occurs:
[168] if num_nodes is None:
[169] num_nodes = mapping.num_ids()
--> [171]edge_index = EdgeIndex(
[172] mapping.to_idxs(edge_list).T.contiguous(),
[173] sparse_size=(num_nodes, num_nodes),
[174]is_undirected=is_undirected,
[175] return Graph(Data(edge_index=edge_index, num_nodes=num_nodes), mapping=mapping)
ValueError: 'EdgeIndex' holds an unsupported data type (got 'torch.float32', but expected one of {torch.int64, torch.int32})
When generating a Gnp graph with no edges the following error occurs: