Commit 818bf153 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix graphviz I/O

parent e1879d1c
...@@ -508,7 +508,7 @@ struct write_to_file ...@@ -508,7 +508,7 @@ struct write_to_file
find_property_map(dp, "vertex_name", typeid(vertex_t)); find_property_map(dp, "vertex_name", typeid(vertex_t));
name = "vertex_name"; name = "vertex_name";
} }
catch (property_not_found) catch (PropertyNotFound)
{ {
name = "vertex_id"; name = "vertex_id";
} }
...@@ -598,7 +598,7 @@ void GraphInterface::WriteToFile(string file, python::object pfile, ...@@ -598,7 +598,7 @@ void GraphInterface::WriteToFile(string file, python::object pfile,
{ {
find_property_map(dp, "vertex_name", typeid(vertex_t)); find_property_map(dp, "vertex_name", typeid(vertex_t));
} }
catch (property_not_found) catch (PropertyNotFound)
{ {
dp.property("vertex_id", index_map); dp.property("vertex_id", index_map);
} }
...@@ -624,7 +624,7 @@ void GraphInterface::WriteToFile(string file, python::object pfile, ...@@ -624,7 +624,7 @@ void GraphInterface::WriteToFile(string file, python::object pfile,
{ {
find_property_map(dp, "vertex_name", typeid(vertex_t)); find_property_map(dp, "vertex_name", typeid(vertex_t));
} }
catch (property_not_found) catch (PropertyNotFound)
{ {
dp.property("vertex_id", _vertex_index); dp.property("vertex_id", _vertex_index);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment