Bob R

Bob R

  • NA
  • 3
  • 0

Recursion and Circular References

Jul 10 2008 12:02 PM
 
Advertisement
I have an array to store IDs and dependent IDs and want be able to identify if any of the relationships cause a circular reference. Any suggestions on how to do this using c#?

Example,

ID DependsOnID
1 2
1 4
2 3
3 1 (circular reference)

Answers (4)