Allow generation of dynamic graphs

Uses the dynamic queries functions to allow the generation of dynamic graphs.
Addresses #8