Last data update: 2014.03.03

R: returns additional information regarding the networks X and Y...
info_networkR Documentation

returns additional information regarding the networks X and Y (original and augmented).

Description

This function returns some additional information such as number of nodes and edges in the networks X and Y.

Usage

info_network(g1,g2, taxnames)

Arguments

g1

the original network X

g2

the augmented network Y with additional nodes (all the original nodes from X must be present in the augmented network Y)

taxnames

the taxon name of the nodes added to the original graph (default: we select all nodes that are not in g1)

Value

Additional information such as: number of nodes in networks X and Y, clustering coefficient, average degree, number of clusters and node distributions.

Examples

   ## Report information about the networks of Sample_1   
	data(Sample_1)
	info_network(g1,g2)	
   ## Network characteristics:
   ## Total of new nodes in network Y: 3 
   ## Number of edges in network Y: 17 
   ## Number of nodes in network Y: 14 
   ## Number of nodes in network X: 11 
   ## Total of pathways to investigate: 55 
   ## Clustering coefficient network Y: 0 
   ## Clustering coefficient network X: 0 
   ## Average degree + std in network Y: 2.428571 + 1.01635 
   ## Average degree + std in network X: 2 + 0.8944272 
   ## Average path length in network Y: 2.119403 
   ## Average path length in network X: 2.162162 
   ## Number of clusters in network Y: 2 
   ## Number of clusters in network X: 2 
   ## Average cluster size + std in network Y: 7 + 7.071068 
   ## Average cluster size + std in network X: 5.5 + 4.949747 
   ## Nodes distribution in network Y (first row taxa, second row count):
   ##  1  2 
   ## 11  3 

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SDDE)
Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SDDE/info_network.Rd_%03d_medium.png", width=480, height=480)
> ### Name: info_network
> ### Title: returns additional information regarding the networks X and Y
> ###   (original and augmented).
> ### Aliases: info_network
> 
> ### ** Examples
> 
>    ## Report information about the networks of Sample_1   
> 	data(Sample_1)
> 	info_network(g1,g2)	
Network characteristics:
Total of new nodes in network Y: 3 
Number of edges in network Y: 17 
Number of nodes in network Y: 14 
Number of nodes in network X: 11 
Total of pathways to investigate: 55 
Clustering coefficient network Y: 0 
Clustering coefficient network X: 0 
Average degree <U+00B1> std in network Y: 2.428571 <U+00B1> 1.01635 
Average degree <U+00B1> std in network X: 2 <U+00B1> 0.8944272 
Average path length in network Y: 2.119403 
Average path length in network X: 2.162162 
Number of clusters in network Y: 2 
Number of clusters in network X: 2 
Average cluster size <U+00B1> std in network Y: 7 <U+00B1> 7.071068 
Average cluster size <U+00B1> std in network X: 5.5 <U+00B1> 4.949747 
Nodes distribution in network Y (first row taxa, second row count):
 1  2 
11  3 
>    ## Network characteristics:
>    ## Total of new nodes in network Y: 3 
>    ## Number of edges in network Y: 17 
>    ## Number of nodes in network Y: 14 
>    ## Number of nodes in network X: 11 
>    ## Total of pathways to investigate: 55 
>    ## Clustering coefficient network Y: 0 
>    ## Clustering coefficient network X: 0 
>    ## Average degree + std in network Y: 2.428571 + 1.01635 
>    ## Average degree + std in network X: 2 + 0.8944272 
>    ## Average path length in network Y: 2.119403 
>    ## Average path length in network X: 2.162162 
>    ## Number of clusters in network Y: 2 
>    ## Number of clusters in network X: 2 
>    ## Average cluster size + std in network Y: 7 + 7.071068 
>    ## Average cluster size + std in network X: 5.5 + 4.949747 
>    ## Nodes distribution in network Y (first row taxa, second row count):
>    ##  1  2 
>    ## 11  3 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>