Exemplo n.º 1
0
 public static IEnumerable <T> BFS <T>(this IGraph <T> graph, T startVertex, Action <T> lastVertexAction) where T : IEquatable <T>
 {
     return(graph.BFS(startVertex, new HashSet <T>(), lastVertexAction));
 }
Exemplo n.º 2
0
 public static IEnumerable <T> BFS <T>(this IGraph <T> graph, T startVertex) where T : IEquatable <T>
 {
     return(graph.BFS(startVertex, v => { /* Do nothing */ }));
 }
Exemplo n.º 3
0
 public static IEnumerable <T> BFS <T>(this IGraph <T> graph, T startVertex, HashSet <T> visitedVertices) where T : IEquatable <T>
 {
     return(graph.BFS(startVertex, visitedVertices, v => { /* Do nothing */ }));
 }