Moving Tarjan logic to top-level method

Deprecated the associated class and static method
creating nested ‘graph’ library under bot

moved Tarjan logic there