taiyipan / bicolor_directed_graph Goto Github PK
View Code? Open in Web Editor NEWConstruct a directed, cyclic, non-weighted graph with red and blue edges. Perform breadth-first search algorithm to find shortest path with alternating color patterns from 0 to any vertex in the graph.