public static GraphPath New() { var rv = new GraphPath(); rv.AddSegment(GraphSegment.New("root")); return(rv); }
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); }
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); }
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; }
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; }
public static GraphPath New() { var rv = new GraphPath(); rv.AddSegment(GraphSegment.New("root")); return rv; }