You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Returns>A list of integers or <K>fail</K>.</Returns>
909
+
<Description>
910
+
If <A>digraph</A> is a digraph with <M>n</M> vertices, then this
911
+
function returns a list with two sublists of <M>n</M> entries, where each entry is
912
+
either a non-negative integer, or <K>fail</K>. <P/>
913
+
914
+
If there is a directed path from <A>source</A> to vertex <C>i</C>, then
915
+
the value of the entry i in the first sublist is the length of the shortest such directed
916
+
path and the entry i in the second sublist is the vertex preceding the vertex of that entry. If no such directed path exists, then the value of i is <C>fail</C>. We use the convention that the distance from every vertex to
0 commit comments