def get_long_edges(graph):
    """Internal function for getting the edges of a graph as long tensors."""
    src, dst = graph.edges()
    return src.long(), dst.long()
Internal function for getting the edges of a graph as long tensors.
python/dgl/homophily.py