create.chain.graph: Create a Chain Graph

View source: R/basic_graphs.R

create.chain.graphR Documentation

Create a Chain Graph

Description

Create a Chain Graph

Usage

create.chain.graph(n.vertices = NULL, x = NULL, y = NULL)

Arguments

n.vertices

Number of vertices. Required when x is NULL.

x

Optional coordinate vector; if supplied, vertices are ordered by x.

y

Optional response vector sorted along with x.

Value

A list with adj.list, edge.lengths, x.sorted, and y.sorted.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.