relation_graph: Return a directed multigraph of applicable, direct catalogue...

View source: R/graphs.R

relation_graphR Documentation

Return a directed multigraph of applicable, direct catalogue relations

Description

Return a directed multigraph of applicable, direct catalogue relations.

“nodes“ selects an induced subgraph. By default only same-object implications are selected. Pass explicit kinds to include other relations. Paths in a mixed graph are not mathematical derivations; use query_relation.

Usage

relation_graph(nodes = NULL, kinds = NULL, context = NULL)

Arguments

nodes

Optional known node IDs selecting an induced subgraph. An empty collection produces an empty graph.

kinds

Explicit relation kinds to include. The default is only IMPLIES_SAME_OBJECT; no transitive edges are added.

context

An explicit theory_context record, or NULL/None for the default ZFC context.

Details

The graph contains direct reviewed relations compatible with the context. Every edge retains its kind, prerequisites, source/target models and evidence. Parallel relations are preserved. A path through mixed edge kinds is not a proof. Layout coordinates do not measure cardinal size or consistency strength. NetworkX and igraph are optional; the symbolic core does not import them. GraphML writers may require encoding list-valued metadata before export.

Input errors inherit from largecardinals_error and expose a code. No function publishes data or accesses the network.

Value

A relation_graph record with context, nodes, typed direct edges, catalogue fingerprint and limitations.

Examples

relation_graph()

largecardinals documentation built on Nov. 25, 2026, 5:09 p.m.