#include "mediapipe/framework/tool/name_util.h"
#include <set>
#include <unordered_map>
#include "absl/container/flat_hash_set.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "mediapipe/framework/port/map_util.h"
#include "mediapipe/framework/tool/validate_name.h"
namespace mediapipe {
namespace tool {
std::string GetUnusedNodeName(const CalculatorGraphConfig& config,
const std::string& node_name_base) { … }
std::string GetUnusedSidePacketName(
const CalculatorGraphConfig& config,
const std::string& input_side_packet_name_base) { … }
std::string CanonicalNodeName(const CalculatorGraphConfig& graph_config,
int node_id) { … }
std::string ParseNameFromStream(const std::string& stream) { … }
std::pair<std::string, int> ParseTagIndex(const std::string& tag_index) { … }
std::pair<std::string, int> ParseTagIndexFromStream(const std::string& stream) { … }
std::string CatTag(const std::string& tag, int index) { … }
std::string CatStream(const std::pair<std::string, int>& tag_index,
const std::string& name) { … }
}
}