torch_geometric_signed_directed.utils.directed.meta_graph_generation

Functions

meta_graph_generation(→ numpy.array)

The meta-graph generation function from the

Module Contents

meta_graph_generation(F_style: str = 'cyclic', K: int = 4, eta: float = 0.05, ambient: bool = False, fill_val: float = 0.5) numpy.array

The meta-graph generation function from the DIGRAC: Digraph Clustering Based on Flow Imbalance paper.

Arg types:
  • F_style (str) - Style of the meta-graph: ‘cyclic’, ‘path’, ‘complete’, ‘star’ or ‘multipartite’.

  • K (int) - Number of clusters.

  • eta (float) - Noise parameter, 0 <= eta <= 0.5.

  • ambient (bool) - Whether there are ambient nodes.

  • fill_val (float) - Value to fill in the ambient locations.

Return types:
  • F (NumPy array) - The resulting meta-graph adjacency matrix.