magnet.graph_utils#
losses module.
Contains loss function definitions for GNNs.
Functions
|
Compute the expected normalized cut for more than 2 partitions. |
|
Rotate the data so to align it with the x-axis. |
|
Compute the cut of a bipartite graph. |
|
Compute the expected normalized cut for a bipartition. |
|
Compute loss function for heterogeneous domains. |
|
Get the neighbours of a node. |
|
Compute normalized cut for a bipartition. |
|
Randomly rotate the mesh. |
|
Compute the volumes of a partitioned graph. |