Latest changes;  added support for multiple graphs