Esempio n. 1
0
 private static IEnumerable <IVertex> Run(IVertex vertex, IGraph graph, DSF_Type dsfType)
 {
     return(dsfType == DSF_Type.Recursive ? DfsRecursive(vertex, graph) : DfsIterative(vertex, graph));
 }
Esempio n. 2
0
 public static IEnumerable <IVertex> Run(IVertex vertex, DSF_Type dsf_Type)
 {
     return(dsf_Type == DSF_Type.Recursive ? DFS_Recursive(vertex) : DFS_Iterative(vertex));
 }
Esempio n. 3
0
 public static IEnumerable <IVertex> Run(IGraph graph, DSF_Type dsf_Type)
 {
     return(dsf_Type == DSF_Type.Recursive ? DfsRecursive(graph.Vertexs.First(), graph) : DfsIterative(graph.Vertexs.First(), graph));
 }
Esempio n. 4
0
 public static IEnumerable <IVertex> Run(IGraph graph, DSF_Type dsf_Type)
 {
     return(dsf_Type == DSF_Type.Recursive ? DFS_Recursive(graph.FirstVertex) : DFS_Iterative(graph.FirstVertex));
 }