R/homomorphism.R
is_homomorphic.Rd
Check if a homomorphism exists
is_homomorphic(pattern, target, monic = FALSE)
Source ACSet (typically small)
Target ACSet (typically larger)
Logical; if TRUE, require injective components (monomorphism)
Logical
e <- path_graph(2) tri <- cycle_graph(3) is_homomorphic(e, tri) # TRUE #> [1] TRUE