struct Vertex { int id; std::string label; Vertex(int id, std::string label) { this->id = id; this->label = label; } };
class Vertex { private: int id; std::string label; public: Vertex(int id, std::string label) { this->id = id; this->label = label; } };Package library: C++ Standard Library.