inst/graph-example.R

# Run after installing largecardinals and the optional igraph package.
nodes <- c("supercompact", "strongly_compact", "measurable", "ramsey", "weakly_compact", "mahlo", "inaccessible")
graph <- largecardinals::to_igraph(nodes = nodes)
# Named positions keep the intended illustration independent of vertex order.
levels <- stats::setNames(rev(seq_along(nodes)), nodes)
layout <- cbind(rep(0, igraph::vcount(graph)), levels[igraph::V(graph)$name])
grDevices::svg("largecardinals-relations-r.svg", width = 8, height = 9)
plot(graph, layout = layout, vertex.label = gsub("_", "\n", igraph::V(graph)$name),
     vertex.color = "lightblue", vertex.size = 30, vertex.label.cex = 0.8,
     main = "ZFC: implications for the same cardinal",
     sub = "Catalogue premises; no existence assertion or numerical size scale")
grDevices::dev.off()

Try the largecardinals package in your browser

Any scripts or data that you put into this service are public.

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