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