| 457 | } |
| 458 | |
| 459 | void Graph::ShowGraph() { |
| 460 | int32_t cnt = 0; |
| 461 | auto it = node_map_.begin(); |
| 462 | while (it != node_map_.end()) { |
| 463 | if (cnt % 500000 == 0) { |
| 464 | std::string s; |
| 465 | if (it->second->Serialize(&s)) { |
| 466 | std::cout << s << std::endl; |
| 467 | } |
| 468 | } |
| 469 | ++cnt; |
| 470 | ++it; |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | bool Graph::Dump(euler::FileIO* file_io) const { |
| 475 | uint32_t size = node_map_.size(); |