support multiple graphs.