add main and tmp graphs, within the hole lib