MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
dot.h
Go to the documentation of this file.
1#pragma once
2
3#include <ostream>
4
5#include <fe/span.h>
6
7#include "pbqp/graph.h"
8
9namespace pbqp {
10
11/// Write `graph` in Graphviz DOT format with cost vectors and matrices as HTML-like labels.
12/// Edge matrices are titled `src × dst`, i.e. rows × columns.
13/// Highlights the entries picked by `choices`, which must be empty or cover every node id.
14void write_dot(std::ostream& out, const Graph& graph, fe::View<OptionId> choices = {});
15
16} // namespace pbqp
A PBQP problem graph.
Definition graph.h:252
Definition dot.h:9
void write_dot(std::ostream &out, const Graph &graph, fe::View< OptionId > choices={})
Write graph in Graphviz DOT format with cost vectors and matrices as HTML-like labels.
Definition dot.cpp:23