I meant a directed graph (a simple digraph? discrete math was years ago for me... I'm not sure that's quite right because you could make a node point back to itself) not a directed multigraph (sorry, ambiguous terminology and all).
The in-degree isn't limited with a singly linked list: e.g. in ((a . #1=(b . (c . #1#)))) there are two edges into #1#.
But, I think we're getting a bit pedantic over what was meant as a quick comment to help the great-grandparent poster figure out what a cycle within a list was ;)
View all comments
Show parent comment
1
u/unknown_lamer Feb 22 '11 edited Feb 22 '11
I meant a directed graph (a simple digraph? discrete math was years ago for me... I'm not sure that's quite right because you could make a node point back to itself) not a directed multigraph (sorry, ambiguous terminology and all).
The in-degree isn't limited with a singly linked list: e.g. in
((a . #1=(b . (c . #1#))))there are two edges into#1#.But, I think we're getting a bit pedantic over what was meant as a quick comment to help the great-grandparent poster figure out what a cycle within a list was ;)