Exemplo n.º 1
0
        public static GraphPath New()
        {
            var rv = new GraphPath();

            rv.AddSegment(GraphSegment.New("root"));
            return(rv);
        }
Exemplo n.º 2
0
        public static GraphPath New(List <IGraphSegment> paths)
        {
            Condition.Requires(paths).IsNotEmpty();
            var rv   = new GraphPath();
            var segs = paths.GetRange(0, paths.Count);

            segs.WithEach(x =>
            {
                rv.AddSegment(x);
            });
            return(rv);
        }
Exemplo n.º 3
0
        public static GraphPath New(GraphPath path)
        {
            Condition.Requires(path).IsNotNull();
            var rv   = new GraphPath();
            var segs = path.Segments.GetRange(0, path.Segments.Count);

            segs.WithEach(x =>
            {
                rv.AddSegment(x);
            });
            return(rv);
        }
Exemplo n.º 4
0
 public static GraphPath New(List<IGraphSegment> paths)
 {
     Condition.Requires(paths).IsNotEmpty();
     var rv = new GraphPath();
     var segs = paths.GetRange(0, paths.Count);
     segs.WithEach(x =>
     {
         rv.AddSegment(x);
     });
     return rv;
 }
Exemplo n.º 5
0
 public static GraphPath New(GraphPath path)
 {
     Condition.Requires(path).IsNotNull();
     var rv = new GraphPath();
     var segs = path.Segments.GetRange(0, path.Segments.Count);
     segs.WithEach(x =>
     {
         rv.AddSegment(x);
     });
     return rv;
 }
Exemplo n.º 6
0
 public static GraphPath New()
 {
     var rv = new GraphPath();
     rv.AddSegment(GraphSegment.New("root"));
     return rv;
 }