MCPcopy Create free account
hub / github.com/BirolLab/abyss / breadthFirstSearch

Function breadthFirstSearch

Graph/BreadthFirstSearch.h:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175template <class Graph>
176void breadthFirstSearch(const Graph& g, bool undirected,
177 const typename graph_traits<Graph>::vertex_descriptor& root)
178{
179 typedef typename graph_traits<Graph>::vertex_descriptor V;
180 std::vector<V> startVertices(1, root);
181 DefaultColorMap<Graph> colorMap;
182 DefaultBFSVisitor<Graph> visitor;
183 breadthFirstSearchImpl(startVertices, g, undirected, colorMap, visitor);
184}
185
186template <class Graph>
187void breadthFirstSearch(const Graph& g,

Callers 2

TEST_FFunction · 0.85
outputGraphFunction · 0.85

Calls 1

breadthFirstSearchImplFunction · 0.85

Tested by 1

TEST_FFunction · 0.68