From 429ff4365b19a796102f6cd9aac849ad662e270e Mon Sep 17 00:00:00 2001 From: xtrm0 Date: Mon, 28 May 2018 01:09:22 +0100 Subject: [PATCH] Update hyper_graph.h --- python/core/hyper_graph.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/core/hyper_graph.h b/python/core/hyper_graph.h index 43a4945..39f3113 100644 --- a/python/core/hyper_graph.h +++ b/python/core/hyper_graph.h @@ -68,7 +68,7 @@ void declareHyperGraph(py::module & m) { py::class_(cls, "Vertex") .def(py::init(), - "id"_a=HyperGraph::UnassignedId) + "id"_a=-1) .def("id", &HyperGraph::Vertex::id) // -> int .def("set_id", &HyperGraph::Vertex::setId, "id"_a) // int -> void @@ -79,7 +79,7 @@ void declareHyperGraph(py::module & m) { py::class_(cls, "Edge") .def(py::init(), - "id"_a=HyperGraph::InvalidId) + "id"_a=-2) .def("resize", &HyperGraph::Edge::resize, "size"_a) // virtual, size_t -> void .def("vertices", (HyperGraph::VertexContainer& (HyperGraph::Edge::*) ()) &HyperGraph::Edge::vertices, @@ -134,4 +134,4 @@ void declareHyperGraph(py::module & m) { } -} // end namespace g2o \ No newline at end of file +} // end namespace g2o