L.S.
I happen to run into the following (simplified) R-code:
# allocate graph.empty with undefined vcount
library(igraph)
g <- graph.empty(n=NULL, directed=TRUE)
print(vcount(g)) # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
sessionInfo()
The result is a graph with an uninitialized number of vertices, instead of as expected zero.
(screenshot included)

0.