Added a member to graphs to store thread handle