MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
json.h File Reference
#include <filesystem>
#include <istream>
#include <ostream>
#include <fe/span.h>
#include <fe/vector.h>
#include "pbqp/graph.h"
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pbqp::Instance
 A graph together with the optional rn_priority for solve. More...

Namespaces

namespace  pbqp

Functions

void pbqp::read_json (std::istream &in, Instance &instance, const std::filesystem::path &path="<input>")
 Read a PBQP instance into the empty instance:
void pbqp::write_json (std::ostream &out, const Graph &graph, fe::View< size_t > rn_priority={})
 Write the format that read_json reads.

Class Documentation

◆ pbqp::Instance

struct pbqp::Instance

A graph together with the optional rn_priority for solve.

Definition at line 15 of file json.h.

Class Members
Graph graph
Vector< size_t > rn_priority Empty, or one entry per node id.