This function turns an immoral graph to a moral graph by following the node ordering given. It either removes no or all edges between the neighbours of the simplicial node at each step of moraliziing the graph.
1 | moralization(graph, ordering, excess = c(0, 1))
|
graph |
A graph that is stored in an adjacency matrix. |
ordering |
A node ordering. |
excess |
The edges (between the neighbours of the simplicial node) that are removed with the simplicial node. At the moment, this is a binary input that takes 0 or 1. The value 0 corresponds to no edge removal. The resulting graph is triangulated. The value 1 corresponds to remove all edges between the neighbours of each simplicial node. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.