README.md

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.



karpfen/graphreport documentation built on May 7, 2019, 8:02 a.m.