add graph and map