From: Emden Gansner Date: Tue, 26 Jul 2016 16:23:16 +0000 (-0400) Subject: Fix bug in printing error message about graphs with loops or multiedges; note port... X-Git-Tag: untagged-282a92de118059697b67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bbc61ad12cfc0c15515a96113098e8605db89e5;p=graphviz Fix bug in printing error message about graphs with loops or multiedges; note port restriction in man page. --- diff --git a/cmd/edgepaint/edgepaint.1 b/cmd/edgepaint/edgepaint.1 index a876c9cda..6d00a0c8e 100644 --- a/cmd/edgepaint/edgepaint.1 +++ b/cmd/edgepaint/edgepaint.1 @@ -53,7 +53,8 @@ Print usage and exit. .SH BUGS At present, \fBedgepaint\fP does not handle graphs with loops or directed multiedges. So, a graph with edges \fIa -> b\fP and \fIb -> a\fP is acceptable, but not if it has edges \fIa -> b\fP and \fIa -> b\fP or -\fIa -- b\fP and \fIa -- b\fP. +\fIa -- b\fP and \fIa -- b\fP. Ports are ignored in this analysis, so having +\fIa.x -> b\fP and \fIa.y -> b\fP is also not supported. .SH AUTHOR Yifan Hu .SH "SEE ALSO" diff --git a/cmd/edgepaint/edgepaintmain.c b/cmd/edgepaint/edgepaintmain.c index 7f3b58f73..e09033b59 100644 --- a/cmd/edgepaint/edgepaintmain.c +++ b/cmd/edgepaint/edgepaintmain.c @@ -221,7 +221,7 @@ static int clarify(Agraph_t* g, real angle, real accuracy, char *infile, int che enum {buf_len = 10000}; if (checkG(g)) { - agerr (AGERR, "Graph %s (%s) contains loops or multiedges\n"); + agerr (AGERR, "Graph %s contains loops or multiedges\n", agnameof(g)); return 1; }