Learn R Programming

pcds.ugraph (version 0.1.1)

print.NumEdges: Print a NumEdges object

Description

Prints the call of the object of class "NumEdges" and also the desc (i.e. a brief description) of the output.

Usage

# S3 method for NumEdges
print(x, ...)

Value

The call of the object of class "NumEdges"

and also the desc (i.e. a brief description) of the output: number of edges in the underlying or reflexivity graph of the proximity catch digraph (PCD) and related quantities in the induced subgraphs for points in the Delaunay cells.

Arguments

x

A NumEdges object.

...

Additional arguments for the S3 method 'print'.

See Also

summary.NumEdges, print.summary.NumEdges, and plot.NumEdges

Examples

Run this code
#\donttest{
nx<-15; ny<-5;
set.seed(1)
Xp<-cbind(runif(nx),runif(nx))
Yp<-cbind(runif(ny,0,.25),
runif(ny,0,.25))+cbind(c(0,0,0.5,1,1),c(0,1,.5,0,1))

M<-c(1,1,1)  #try also M<-c(1,2,3)

Nedges = num.edgesAS(Xp,Yp,M)
Nedges
print(Nedges)

typeof(Nedges)
attributes(Nedges)
#}

Run the code above in your browser using DataLab