get_graph_sizes: Get number and sizes of graph components

Description Usage Arguments Value Examples

Description

Get number and sizes of graph components

Usage

1

Arguments

graph

data.frame containing the graph. must have columns from and to, so each row defines an edge.

Value

data.frame containing the sizes and frequencies of all individual graph components in descending order.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
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)

get_graph_sizes (graph = graph)

## End(Not run)

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