Get network metadata for debugging/visualization.
183{
185
188 metadata["bounds_min"] = std::format("({:.2f}, {:.2f}, {:.2f})",
190 metadata["bounds_max"] = std::format("({:.2f}, {:.2f}, {:.2f})",
192
193 if (
auto* topology_op =
dynamic_cast<const TopologyOperator*
>(
m_operator.get())) {
194 if (auto connections = topology_op->query_state("connection_count")) {
195 metadata["connection_count"] = std::to_string(static_cast<size_t>(*connections));
196 }
197 if (auto topology_count = topology_op->query_state("topology_count")) {
198 metadata["topology_count"] = std::to_string(static_cast<size_t>(*topology_count));
199 }
200 }
201
202 if (
auto* path_op =
dynamic_cast<const PathOperator*
>(
m_operator.get())) {
203 if (auto vertex_count = path_op->query_state("vertex_count")) {
204 metadata["vertex_count"] = std::to_string(static_cast<size_t>(*vertex_count));
205 }
206 if (auto path_count = path_op->query_state("path_count")) {
207 metadata["path_count"] = std::to_string(static_cast<size_t>(*path_count));
208 }
209 }
210
211 return metadata;
212}
virtual std::unordered_map< std::string, std::string > get_metadata() const
Get network metadata for debugging/visualization.
size_t get_node_count() const override
Get the number of nodes in the network.
std::unique_ptr< NetworkOperator > m_operator
Kinesis::SamplerBounds m_bounds