depgraph_validation_report: Validation Report Object for splitGraph Graphs

View source: R/constructors.R

depgraph_validation_reportR Documentation

Validation Report Object for splitGraph Graphs

Description

depgraph_validation_report is the structured return type produced by validate_graph() and validate_depgraph().

Usage

depgraph_validation_report(
  graph_name = NULL,
  issues = NULL,
  metrics = list(),
  metadata = list(),
  valid = NULL,
  errors = NULL,
  warnings = NULL,
  advisories = NULL
)

split_spec(
  sample_data = NULL,
  group_var = "group_id",
  block_vars = character(),
  time_var = NULL,
  ordering_required = FALSE,
  constraint_mode = NULL,
  constraint_strategy = NULL,
  recommended_resampling = NULL,
  metadata = list()
)

split_spec_validation(issues = NULL, metadata = list())

leakage_risk_summary(
  overview = character(),
  diagnostics = NULL,
  validation_summary = list(),
  constraint_summary = list(),
  split_spec_summary = list(),
  metadata = list()
)

Arguments

graph_name

Graph label stored on the report.

issues

Canonical issue table. When NULL, an empty skeleton is constructed.

metrics

Named list of graph- and issue-level counts.

metadata

Named list of report metadata.

valid

Optional logical override for the overall validity flag.

errors, warnings, advisories

Optional character vectors of severity-specific messages.

sample_data

Sample-level mapping table carried by a split_spec.

group_var

Name of the grouping column.

block_vars

Optional blocking variable names.

time_var

Optional ordering column name.

ordering_required

Whether ordering is required for downstream evaluation.

constraint_mode, constraint_strategy

Constraint-derivation metadata.

recommended_resampling

Optional recommended resampling routine.

overview

Character vector of human-readable overview lines.

diagnostics

Diagnostics data frame for leakage risks.

validation_summary, constraint_summary, split_spec_summary

Named lists carrying pre-computed summaries.

Details

The report contains:

  • graph_name: graph label when available

  • valid: whether any error-severity issues were found

  • issues: canonical issue table

  • summary: counts by level, severity, and code

  • metadata: report metadata

  • errors, warnings, advisories: backward-compatible message vectors

  • metrics: graph and issue counts

The canonical issue table includes the columns: issue_id, level, severity, code, message, node_ids, edge_ids, and details.

Value

An S3 object corresponding to the constructor that was called.

See Also

validate_graph

Examples

meta <- data.frame(
  sample_id  = c("S1", "S2"),
  subject_id = c("P1", "P2")
)
g <- graph_from_metadata(meta)

report <- validate_graph(g)
report$valid
summary(report)

splitGraph documentation built on July 3, 2026, 5:06 p.m.