#ifndef NETWORK_SET_H_3036B8E3 #define NETWORK_SET_H_3036B8E3 #include #include #include #include #include class NetworkSet { public: void Clear(); void AddLink(int id1, int id2); void AddLinkToNetwork(int network_id, int id1, int id2); bool IsItemInNetwork(int id) const; const std::set>& GetNetworkGraph(int id) const; private: std::map>> network_by_item_; }; #endif /* end of include guard: NETWORK_SET_H_3036B8E3 */