Graphhypergraphconversion

convertHypergraphToBipartiteGraph(S, printLevel)[source]

Converts a hypergraph into an undirected bipartite graph

USAGE

[A, B] = convertHypergraphToBipartiteGraph (S, printLevel)

INPUT
  • Sm x n matrix with m nodes and n hyperedges

  • printLevel – timer

OUTPUTS
  • A(m+n) x (m+n) adjacency matrix for an undirected graph (symmetric)

  • B(m+n) x nnz(S) incidence matrix for a directed graph