Commit 4d46517e authored by Davis King's avatar Davis King

Fixed bug in is_graph_labeling_problem(). It didn't allow

for zero sized sparse vectors.
parent 16aada08
......@@ -47,7 +47,7 @@ namespace dlib
for (unsigned long j = 0; j < samples[i].number_of_nodes(); ++j)
{
if (samples[i].node(j).data.size() == 0)
if (ismat && samples[i].node(j).data.size() == 0)
return false;
if (ismat && node_dims == -1)
......
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