graphHypergraphConversion¶
- convertHypergraphToBipartiteGraph(S, printLevel)¶
Converts a hypergraph into an undirected bipartite graph
USAGE:
[A, B] = convertHypergraphToBipartiteGraph(S, printLevel)
- INPUT:
S: m 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