All daft scripts will start with the creation of a PGM object. This object contains a list of Node objects and Edge objects connecting them. You can also specify rendering parameters and other default parameters when you initialize your PGM.
The base object for building a graphical model representation.
Parameters: 


Construct an Edge between two named Node objects.
Parameters: 


The representation of a random variable in a PGM.
Parameters: 


Render the node.
Parameters:  ctx – The _rendering_context object. 

An edge between two Node objects.
Parameters: 


Render the edge in the given axes.
Parameters:  ctx – The _rendering_context object. 

A plate to encapsulate repeated independent processes in the model.
Parameters: 


Render the plate in the given axes.
Parameters:  ctx – The _rendering_context object. 

Parameters: 


Convert from model coordinates to plot coordinates.