rustworkx.visit.BFSVisitor.discover_vertex¶ BFSVisitor.discover_vertex(v)[source]¶ This is invoked when a vertex is encountered for the first time.