This function is only called nodes that have been check()'d. It is safe to assume that nodes is non-empty. (TODO: check this!)

node_degrees(graph, nodes)

Arguments

graph

A graph object.

nodes

The name(s) of node(s) in graph as a character vector.

Value

A data.frame() with one row for every node in nodes and two columns: in_degree and out_degree.frame with one