Module Import alias identifier FunctionDef arguments args NameParam NameParam defaults NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt Call NameLoad NameLoad BinOpSub NameLoad Num body Return NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr SubscriptLoad NameLoad Index Num Assign NameStore Num While CompareLt NameLoad NameLoad body For NameStore Call NameLoad NameLoad NameLoad body If UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Break Assign NameStore NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Index NameLoad body If UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If UnaryOpNot CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list
N/A N/A numpy np is_forest N/A N/A edges n_vertices N/A None N/A N/A N/A N/A n_vertices None N/A N/A len edges N/A n_vertices 1 N/A N/A False N/A n_vertices N/A N/A N/A np max edges 1 N/A parents N/A N/A N/A np ones n_vertices N/A visited N/A N/A np zeros n_vertices dtype N/A np bool N/A neighbors N/A N/A N/A i N/A range n_vertices N/A edge edges N/A N/A N/A N/A N/A neighbors N/A N/A edge N/A 0 append N/A edge N/A 1 N/A N/A N/A N/A neighbors N/A N/A edge N/A 1 append N/A edge N/A 0 N/A lonely 0 N/A N/A lonely n_vertices N/A N/A i N/A range lonely n_vertices N/A N/A N/A N/A visited N/A i N/A N/A queue N/A i N/A lonely N/A i 1 N/A N/A visited N/A i True N/A N/A lonely n_vertices N/A queue N/A N/A node N/A N/A queue pop N/A neighbor N/A neighbors N/A node N/A N/A N/A N/A visited N/A neighbor N/A N/A N/A parents N/A neighbor node N/A N/A N/A queue append neighbor N/A N/A visited N/A neighbor True N/A N/A N/A N/A N/A parents N/A node neighbor N/A N/A False N/A True N/A