read_json was creating duplicate nodes, fixed
tarjan algorithm working via stack simulation, bugs in read_json fixed