I wonder if you can help me with a simple implementation for detecting loops in a directed graph in C #.
I read about algorithms , but I would like to find something already implemented, very simple and short.
I don't need performance because the data size is limited.
Run DFS on G and check for support.
In each node, you are expanding, just checking to see if it is already on the stream path.
Check out QuickGraph - it has many implemented algorithms, and it is a pretty good library to use.
Source: https://habr.com/ru/post/891009/More articles:Initializing a component throws a null-reference exception - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/891005/is-there-something-analogous-to-springs-transactional-annotation-available-in-java-ee-6&usg=ALkJrhifJDSSJX3IWXHxTSN5dfoAit2AfwHow to add backslash in string in java - java[Error]: update Heroku client to latest version - ruby-on-railsAndroid video quality? - androidChecking if a string has balanced parentheses - ruby | fooobar.comatoi () with other languages - c ++Absolute (external) URLs using Html.ActionLink - c #c atoi () for wide characters on linux? - cHow to force Visual Studio 2008 to save vcproj files with the correct locale? - visual-studio-2008All Articles