comp.subnet: Comparing a sub network to the whole one

Description Usage Arguments Value See Also Examples

View source: R/comp.subnet.R

Description

Comparing the topological parameters of a sub network and the whole one.

Usage

1
2
3
4
comp.subnet(x, graph, topology.parameters = TRUE, degree = FALSE,
  cc = FALSE, betweenness = FALSE, eccentricity = FALSE,
  ave.path.len = FALSE, figure.type = 1, method = "utest",
  legendname = c(substitute(x), substitute(graph)))

Arguments

x

Vertex of the sub network.

graph

An igraph object.

topology.parameters

Logical value, indicating whether to do basic compariring (if TRUE) or not (if FALSE).

degree

Logical value, indicating whether to do degree comparing (if TRUE) or not (if FALSE).

cc

Logical value, indicating whether to do clustering coefficient comparing (if TRUE) or not (if FALSE).

betweenness

Logical value, indicating whether to do betweenness comparing (if TRUE) or not (if FALSE).

eccentricity

Logical value, indicating whether to do eccentricity comparing (if TRUE) or not (if FALSE).

ave.path.len

Logical value, indicating whether to do average path comparing (if TRUE) or not (if FALSE).

figure.type

Type of the plot. See plot for more information.

method

Test method, currently only utest is supported.

legendname

Legend name for the plot.

Value

A list of compared parameters and plot.

See Also

comp.rand.subnet, net.comparing

Examples

1
2
3
4
g<-barabasi.game(100,power=0.8,directed = FALSE)
id<-sample(1:100, 20)
res<-comp.subnet(id,g)
res<-comp.subnet(id,g,topology.parameters=TRUE)

ProNet documentation built on May 30, 2017, 2:02 a.m.