add graph and complete result