The function compares the following parameters of two networks: diameter, average degree, degree exponent, average path length and plots the cumulative degree distributions. The networks have to be connected components.

1 | ```
compareNetworks(network1, network2, plot=TRUE)
``` |

`network1` |
Network |

`network2` |
Second network in |

`plot` |
Boolean value, whether to plot the cumulative degree distributions. |

A vector of network parameters is returned:

`diam.network1` |
Network diameter |

`diam.network2` |
Diameter of the subnetwork |

`av.degree.network1` |
Average degree of the network |

`av.degree.network2` |
Average degree of the subnetwork |

`degree.exponent.network1` |
Degree exponent of the network |

`degree.exponent.network2` |
Degree exponent of the subnetwork |

`av.path.length.network1` |
Average path lenght of the network |

`av.path.length.network2` |
Average path length of the subnetwork |

Daniela Beisser

1 2 3 4 5 | ```
library(DLBCL)
data(interactome)
subnet1 <- largestComp(subNetwork(nodes(interactome)[1:100], interactome))
subnet2 <- largestComp(subNetwork(nodes(interactome)[101:200], interactome))
compareNetworks(network1=subnet1, network2=subnet2)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.