NetworkX

Source code for networkx.algorithms.traversal

import networkx.algorithms.traversal.breadth_first_search
from networkx.algorithms.traversal.breadth_first_search import *