validate_hypergraph: Quickly Validate a Hypergraph

Description Usage Arguments Value Examples

View source: R/validate_hypergraph.R


When using the rhype functions, the integrity of a hypergraph object should remain intact. However, as the properties of a hypergraph object are dependent on one another, it is possible in the case of an error or direct object manipulation by the user that a hypergraph object's integrity is corrupted. This will cause other rhype functions to either throw errors or to calculate incorrect answers. This function is not exhaustive but will perform multiple sanity checks on hypergraph objects and is a good place to start when debugging.


validate_hypergraph(hype, return = FALSE, verbose = TRUE)



A hypergraph object


A logical variable stating whether any output should be returned from the function


A logical variable indicating whether the function should output text to the screen


Outputs text to screen of any problems found within the hypergraph object. If return is set to TRUE then a logical output will be returned. This logical output will be TRUE if it passed all of the tests, FALSE if it failed any test that proves the structure of the hypergraph is broken or NULL if it failed a test that most hypergraphs used practically should pass, but doesn't necessarily mean the hypergraph is broken, see text output for more details.



rhype documentation built on Nov. 9, 2021, 9:06 a.m.