Checks that the input latent digraph has nodes numbered from 1 to latentDigraph$numObserved()+latentDigraph$numLatents(). The first latentDigraph$numObserved() nodes correspond to the observed nodes in the graph, all other nodes are considered unobserved. Throws an error if this is not true.
latentDigraphHasSimpleNumbering(graph)
a LatentDigraph
object representing
the latent-factor graph. All latent nodes in this graph should be
source nodes (i.e. have no parents).