示例#1
0
 /// <summary>
 /// Initializes a new instance of the PathFinder class.
 /// </summary>
 /// <param name="diagram">A FlowChart instance in which to look for paths or cycles.</param>
 /// <param name="ignoreDirection">Specifies whether the direction of arrows
 /// should be considered when looking for paths or cycles.</param>
 public PathFinder(FlowChart diagram, bool ignoreDirection)
 {
     graph = new FCGraph(diagram, false, ignoreDirection);
     this.ignoreDirection = ignoreDirection;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the PathFinder class.
 /// Path-finding will depend on the direction of arrows.
 /// </summary>
 /// <param name="diagram">A FlowChart instance in which to look for paths or cycles.</param>
 public PathFinder(FlowChart diagram)
 {
     graph           = new FCGraph(diagram, false);
     ignoreDirection = false;
 }