if ((c == 'd') && (strncmp(argv[1], "delete", length) == 0)) {
deleteEdge(gctx, g, e);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'l')
}
setedgeattributes(agroot(g), e, &argv[2], argc - 2);
}
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 's') && (strncmp(argv[1], "showname", length) == 0)) {
e = agedge(g, tail, head, NULL, 1);
Tcl_AppendResult(interp, obj2cmd(e), NULL);
setedgeattributes(agroot(g), e, &argv[4], argc - 4);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'a') && (strncmp(argv[1], "addnode", length) == 0)) {
}
Tcl_AppendResult(interp, obj2cmd(n), NULL);
setnodeattributes(agroot(g), n, &argv[i], argc - i);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'a')
i = 2;
}
setgraphattributes(sg, &argv[i], argc - i);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'c') && (strncmp(argv[1], "countnodes", length) == 0)) {
return TCL_OK;
} else if ((c == 'd') && (strncmp(argv[1], "delete", length) == 0)) {
- reset_layout(gvc, g);
deleteGraph(gctx, g);
return TCL_OK;
}
setgraphattributes(g, argv2, argc2);
Tcl_Free((char *) argv2);
- reset_layout(gvc, g);
}
if (argc == 4 && strcmp(argv[2], "viewport") == 0) {
/* special case to allow viewport to be set without resetting layout */
return TCL_ERROR;
}
setgraphattributes(g, &argv[2], argc - 2);
- reset_layout(gvc, g);
}
return TCL_OK;
}
setedgeattributes(g, NULL, &argv[2], argc - 2);
}
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 's')
}
setnodeattributes(g, NULL, &argv[2], argc - 2);
}
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 's') && (strncmp(argv[1], "showname", length) == 0)) {
e = agedge(g, n, head, NULL, 1);
Tcl_AppendResult(interp, obj2cmd(e), NULL);
setedgeattributes(agroot(g), e, &argv[3], argc - 3);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'd') && (strncmp(argv[1], "delete", length) == 0)) {
deleteNode(gctx, g, n);
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 'f') && (strncmp(argv[1], "findedge", length) == 0)) {
}
setnodeattributes(g, n, &argv[2], argc - 2);
}
- reset_layout(gvc, g);
return TCL_OK;
} else if ((c == 's') && (strncmp(argv[1], "showname", length) == 0)) {