Put graph into container