networkx dfs tree code example
Example: networkx dfs tree
def get_Tree(Graph,source):
auxlist=list(nx.bfs_tree(Graph, source).edges())
return auxlist
def get_Tree(Graph,source):
auxlist=list(nx.bfs_tree(Graph, source).edges())
return auxlist