public ControlStructure(HashSet <ControlFlowNode> nodes, ControlFlowNode entryPoint, ControlStructureType type)
 {
     if (nodes == null)
     {
         throw new ArgumentNullException("nodes");
     }
     this.Nodes      = nodes;
     this.EntryPoint = entryPoint;
     this.Type       = type;
     this.AllNodes   = new HashSet <ControlFlowNode>(nodes);
 }
 public ControlStructure(HashSet<ControlFlowNode> nodes, ControlFlowNode entryPoint, ControlStructureType type)
 {
     if (nodes == null)
         throw new ArgumentNullException("nodes");
     this.Nodes = nodes;
     this.EntryPoint = entryPoint;
     this.Type = type;
     this.AllNodes = new HashSet<ControlFlowNode>(nodes);
 }