Learn R Programming

ProNet (version 1.0.0)

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

Description

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

Usage

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

Run this code
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)

Run the code above in your browser using DataLab