| build_dependency_graph | R Documentation |
Combine canonical node and edge tables into a typed dependency graph and perform structural, semantic, and graph-local leakage-aware validation.
build_dependency_graph(
nodes,
edges,
graph_name = NULL,
dataset_name = NULL,
validate = TRUE,
validation_overrides = list()
)
build_depgraph(
nodes,
edges,
graph_name = NULL,
dataset_name = NULL,
validate = TRUE,
validation_overrides = list()
)
as_igraph(x)
validate_graph(
graph,
checks = c("ids", "references", "cardinality", "schema", "time"),
error_on_fail = FALSE,
levels = NULL,
severities = NULL,
validation_overrides = NULL
)
validate_depgraph(
graph,
checks = c("ids", "references", "cardinality", "schema", "time"),
error_on_fail = FALSE,
levels = NULL,
severities = NULL,
validation_overrides = NULL
)
nodes, edges |
Lists of |
graph_name, dataset_name |
Optional metadata labels. |
validate |
If |
validation_overrides |
Optional named list of explicit validation exceptions. Currently supported keys:
When passed to |
x |
A |
graph |
A |
checks |
Deprecated. Use |
error_on_fail |
If |
levels |
Optional validation layers to run. |
severities |
Optional severities to retain in the returned
|
For build_dependency_graph(), a dependency_graph. For
validate_graph() and validate_depgraph(), a
depgraph_validation_report. For as_igraph(), the underlying
igraph object.
meta <- data.frame(
sample_id = c("S1", "S2"),
subject_id = c("P1", "P2")
)
samples <- create_nodes(meta, type = "Sample", id_col = "sample_id")
subjects <- create_nodes(meta, type = "Subject", id_col = "subject_id")
edges <- create_edges(
meta,
"sample_id",
"subject_id",
"Sample",
"Subject",
"sample_belongs_to_subject"
)
g <- build_dependency_graph(list(samples, subjects), list(edges))
validate_graph(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.