Learn R Programming

ProNet (version 1.0.0)

net.comparing: Comparing two networks

Description

Comparing two networks' topological parameters.

Usage

net.comparing(graph1, graph2, topology.parameters = FALSE, degree = FALSE, cc = FALSE, betweenness = FALSE, eccentricity = FALSE, ave.path.len = FALSE, figure.type = 1, method = "utest", legendname)

Arguments

graph1
An igraph object.
graph2
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, only utest is supported.
legendname
Legend name for graph.

Value

A list of compared results and plot.

References

Dehmer,M. et al. A large scale analysis of information-theoretic network complexity measures using chemical structures. PLoS ONE, (2009a), 4, e8057.

See Also

comp.subnet and comp.rand.subnet.

Examples

Run this code
g1<-barabasi.game(100,power=0.8,directed = FALSE)
g2<-erdos.renyi.game(100,p=0.01,directed = FALSE)
res<-net.comparing(g1,g2,degree=TRUE,cc=TRUE,betweenness=FALSE)

Run the code above in your browser using DataLab