Question
Why is E(g) not identical to itself
Consider:
library(igraph)
g <- make_ring(3)
identical(g, g) # TRUE as expected
# [1] TRUE
dput(E(g))
# structure(1:3, is_all = TRUE, class = "igraph.es", env = <weak reference>, graph = "4f82a4da-3975-11ef-8958-675a79d1d14f")
E(g) == E(g) # test equality.
# [1] TRUE TRUE TRUE
all.equal(E(g), E(g)) # Next try.
# [1] TRUE
identical(E(g), E(g), ignore.environment = FALSE) # Expecting TRUE.
# [1] FALSE
identical(E(g), E(g), ignore.environment = TRUE) # Expecting TRUE.
# [1] FALSE
Question: Why False?