calculate nodes and edges from omop hierarchy accepts output from either omop_ancestors(), omop_descendants() or omop_relations used by omop_graph(), you are only likely to want to use on it's own to a) separate calculation & visualisation so that you can join attributes for visualisation b) pass the nodes and edges to a different graph rendering package
Source:R/omop_graph.R
omop_graph_calc.Rd
calculate nodes and edges from omop hierarchy accepts output from either omop_ancestors(), omop_descendants() or omop_relations used by omop_graph(), you are only likely to want to use on it's own to a) separate calculation & visualisation so that you can join attributes for visualisation b) pass the nodes and edges to a different graph rendering package
Examples
bp <- omop_relations("Non-invasive blood pressure")
#> recursively querying concept relations of: Non-invasive blood pressure - may take more than a few seconds
#> step 1 of 1
#> querying concept relations of: Non-invasive blood pressure - may take a few seconds
#> returning 8 concepts
listedges_nodes <- omop_graph_calc(bp)