get_node_degrees: Get degrees of all nodes in the graph

Description Usage Arguments Value Examples

Description

Get degrees of all nodes in the graph

Usage

1

Arguments

graph

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

Value

data.frame the ID and frequency of every node in the graph.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
n <- 50
from <- as.integer (runif (min = 0, max = 100, n))
to <- as.integer (runif (min = 0, max = 100, n))
graph <- data.frame (from, to)

get_node_degrees (graph = graph)

## End(Not run)

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