I have an graph in (igraph-python)
n_vertices = 3
edges = [(0, 1), (0, 2), (0, 3), (0, 4), (1, 2), (1, 3), (1, 4), (3, 4)]
graph = ig.Graph(n_vertices, edges)
How to represent the graph by a tensor like how to reach the follow point
Data(edge_index, x, y, train_mask)