View source: R/min_deg_moralization.R
This function turns a immoral graph to a moral graph by fill in the deficiency of each node. A node with the minimum degree is selected at each step. The elimination process removes a nodes and the edges between its neighbours. The output of the function is a moral graph.
1 | min_deg_moralization(graph)
|
graph |
A graph that is stored in an adjacency matrix. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.