MimIR
0.6-dev
MimIR is my Intermediate Representation
Toggle main menu visibility
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
9
namespace
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.
14
void
write_dot
(std::ostream& out,
const
Graph
& graph, fe::View<OptionId> choices = {});
15
16
}
// namespace pbqp
pbqp::Graph
A PBQP problem graph.
Definition
graph.h:252
graph.h
pbqp
Definition
dot.h:9
pbqp::write_dot
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
include
pbqp
dot.h
Generated by
1.18.0