Transformations#
|
Converts an adjacency matrix to an edge index representation. |
|
Converts an adjacency matrix to a sparse representation as a tuple of edge index and edge features. |
|
Converts an edge index representation to an adjacency matrix. |
|
Extracts source and destination node features based on the given edge indices. |
|
Computes the indices of the edges in edge_index_1 that are NOT present in edge_index_2 |
|
Adds self-loops to the given graph represented by edge_index and edge_features. |
|
Removes self-loops from the given graph represented by edge_index and edge_features. |
|
Converts a graph given as edge_index and, optionally, edge_features to an undirected one. |
|
Removes the duplicate directed edges in edge_index. |
|
Removes duplicate edges in |
|
Returns a mask with isolated nodes set to |
|
Function to check for isolated nodes. |
|
Function to check for self loops. |