Degree: Degree

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.r

Description

Returns the degree of a set of vertices.

Usage

1
Degree(model=NULL,edges=NULL,v=NULL)

Arguments

model

gRapHD object.

edges

matrix with 2 columns, each row representing one edge, and each column one of the vertices in the edge. Column 1 contains the vertex with lower index.

v

set of vertices.

Details

Calculates the degree of each vertex in v. If v=NULL, it returns the degree of all vertices in edges. If v contains a vertex not in edges, the corresponding value is NA.

Value

vector

length(v).

Author(s)

Gabriel Coelho Goncalves de Abreu (abreu_ga@yahoo.com.br)

Examples

1
2
3
data(dsCont)
m1 <- minForest(dsCont,homog=TRUE,forbEdges=NULL,stat="LR")
Degree(model=m1)

gRapHD documentation built on Feb. 9, 2018, 6:05 a.m.

Related to Degree in gRapHD...