validateLatentNodesAreSources: A helper function to validate that latent nodes in a LatentDigraph are sources.
Description
Produces an error if not all latent nodes are sources.
Usage
validateLatentNodesAreSources(graph)
Arguments
- graph
the LatentDigraph