Skip to content
Snippets Groups Projects
Commit 554209f0 authored by Enna Gerhard's avatar Enna Gerhard :levitate:
Browse files

Merge branch 'mce' into 'main'

Ensure vertex ids are within bounds

See merge request !31
parents b3329354 7dc0ab07
No related branches found
No related tags found
1 merge request!31Ensure vertex ids are within bounds
Pipeline #206057 passed
......@@ -104,7 +104,7 @@ public class NativeVcSolver {
private void writeProblem(final Process process, final DirectedGraph<Vertex> graph, final int offset) {
final PrintWriter writer = new PrintWriter(new OutputStreamWriter(process.getOutputStream()));
writer.println("p td " + graph.vertexCount() + " " + (graph.edgeCount() / 2));
writer.println("p td " + graph.vertexCount() + 1 + " " + (graph.edgeCount() / 2));
for (final DirectedEdge edge : graph.getEdges()) {
if (edge.getStartId() < edge.getEndId()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment