Пример #1
0
 public VertexGraphBuilder(
     Graph <T, IEvent <T>, TActivity> graph,
     Func <T> edgeIdGenerator,
     Func <T> nodeIdGenerator)
     : base(
         graph,
         edgeIdGenerator,
         nodeIdGenerator,
         s_EventGenerator)
 {
     if (NormalNodes.Any())
     {
         // Check Start and End nodes.
         if (!StartNodes.Any())
         {
             throw new ArgumentException(Properties.Resources.VertexGraphCannotContainNormalNodesWithoutAnyStartNodes);
         }
         if (!EndNodes.Any())
         {
             throw new ArgumentException(Properties.Resources.VertexGraphCannotContainNormalNodesWithoutAnyEndNodes);
         }
     }
 }