karpfen / graphreport

R package for generating reports about graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Build status codecov

graphreport

R package for generating reports about graphs.


Install

devtools::install_github ('karpfen/graphreport')

Usage

# create random sample graph with 50 edges
n <- 50
from <- as.integer (runif (min = 0, max = 100, n))
to <- as.integer (runif (min = 0, max = 100, n))
weight <- runif (n)
graph <- data.frame (from, to, weight)

Generating a complete graph report

generate_graph_report (graph)

Getting individual graph statistics

sizes <- get_graph_sizes (graph)
length (sizes) # print the number of graphs
sizes # print the size of every graph

degrees <- get_node_degrees (graph)
summary (degrees)

get_edge_weight_summary (graph, 5)

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

About

R package for generating reports about graphs.

License:GNU General Public License v3.0


Languages

Language:R 64.6%Language:C++ 32.7%Language:Makefile 2.3%Language:Shell 0.4%