From f8ccbc01e43293d610973328dfcaf5f3753c9d92 Mon Sep 17 00:00:00 2001 From: Jean-Alexandre Barszcz Date: Sat, 2 Dec 2017 02:53:08 -0500 Subject: digraph: Document a bad_edge error --- lib/stdlib/doc/src/digraph.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/stdlib/doc/src') diff --git a/lib/stdlib/doc/src/digraph.xml b/lib/stdlib/doc/src/digraph.xml index 5332d7aba5..db96beed6c 100644 --- a/lib/stdlib/doc/src/digraph.xml +++ b/lib/stdlib/doc/src/digraph.xml @@ -170,6 +170,10 @@

If the edge would create a cycle in an acyclic digraph, {error, {bad_edge, Path}} is returned. + If G already has an edge with value + E connecting a different pair of vertices, + {error, {bad_edge, [V1V2]}} + is returned. If either of V1 or V2 is not a vertex of digraph G, {error, {bad_vertex, V}} is -- cgit v1.2.3