I'm working on small tool to manage dependencies between applications. For example app_one depends on app_two and app_three. Simplest way to store those relations is dict
dep = {
'app_one': 'app_two',
'app_two': '',
'app_three': 'app_one, app_four',
'app_four': 'app_two, app_three'
}
Now I'm wonder how to find such cyclic dependencies like between app_three and app_four.. Or maybe I should use something different than dict.
Iterating through dict and manually fining that relations could be slow and not efficient.
Thanks.