check_graph | R Documentation |
Checks that the input graph is a valid graph for an extremal graphical model. If necessary, converts the graph to an undirected graph. Removes vertex labels if present.
check_graph(
graph,
graph_type = c("general", "decomposable", "block", "tree"),
check_connected = TRUE,
nVertices = NULL
)
graph |
An [ |
graph_type |
|
check_connected |
Whether to check if the graph is connected. |
nVertices |
The number of vertices required in the graph. |
The given graph
, if necessary converted to undirected.
If the graph is not valid an error is thrown.
Other input validation functions:
checkGamma()
,
check_partial_matrix_and_graph()
,
ensure_matrix_symmetry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.