From 3bbc61ad12cfc0c15515a96113098e8605db89e5 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Tue, 26 Jul 2016 12:23:16 -0400 Subject: [PATCH] Fix bug in printing error message about graphs with loops or multiedges; note port restriction in man page. --- cmd/edgepaint/edgepaint.1 | 3 ++- cmd/edgepaint/edgepaintmain.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.40.0