mode = MODE_KK;
else if (streq(str, "major"))
mode = MODE_MAJOR;
+ else if (streq(str, "sgd"))
+ mode = MODE_SGD;
#ifdef DIGCOLA
else if (streq(str, "hier"))
mode = MODE_HIER;
mode = MODE_IPSEP;
#endif
#endif
- else if (streq(str, "sgd"))
- mode = MODE_SGD;
else
agerr(AGWARN,
"Illegal value %s for attribute \"mode\" in graph %s - ignored\n",
nG = scan_graph_mode(g, layoutMode);
if ((nG < 2) || (MaxIter < 0))
return;
- if (layoutMode == MODE_KK)
+ if (layoutMode == MODE_KK)
kkNeato(g, nG, layoutModel);
- else if (layoutMode == MODE_SGD)
+ else if (layoutMode == MODE_SGD)
sgd(g, nG, layoutModel);
- else
+ else
majorization(mg, g, nG, layoutMode, layoutModel, Ndim, MaxIter, am);
}