/* setEdgeType:
* Sets graph's edge type based on the "splines" attribute.
- * If the attribute is not defined, use default.
+ * If the attribute is not defined, use defaultValue.
* If the attribute is "", use NONE.
* If attribute value matches (case indepedent), use match.
* ortho => EDGETYPE_ORTHO
* line => EDGETYPE_LINE
* polyline => EDGETYPE_PLINE
* spline => EDGETYPE_SPLINE
- * If attribute is boolean, true means EDGETYPE_SPLINE, false means EDGETYPE_LINE.
- * Else warn and use default.
+ * If attribute is boolean, true means EDGETYPE_SPLINE, false means
+ * EDGETYPE_LINE. Else warn and use default.
*/
-void setEdgeType (graph_t* g, int dflt)
-{
+void setEdgeType(graph_t *g, int defaultValue) {
char* s = agget(g, "splines");
int et;
if (!s) {
- et = dflt;
+ et = defaultValue;
}
else if (*s == '\0') {
et = EDGETYPE_NONE;
- }
- else et = edgeType (s, dflt);
+ } else
+ et = edgeType(s, defaultValue);
GD_flags(g) |= et;
}
-
/* get_gradient_points
* Evaluates the extreme points of an ellipse or polygon
* Determines the point at the center of the extreme points
UTILS_API Agsym_t *setAttr(graph_t *, void *, char *name, char *value,
Agsym_t *);
-UTILS_API void setEdgeType(graph_t *g, int dflt);
+UTILS_API void setEdgeType(graph_t *g, int defaultValue);
UTILS_API bool is_a_cluster(Agraph_t *g);
/* from postproc.c */