node_degrees: Get the in-degree and out-degree of nodes in an abstract...

View source: R/abstract-graph.R

node_degreesR Documentation

Get the in-degree and out-degree of nodes in an abstract graph

Description

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

Usage

node_degrees(graph, nodes)

Arguments

graph

A graph object.

nodes

The name(s) of node(s) in graph as a character vector. Methods may assume that there are no repeated values in nodes.

Value

A data.frame() with one row for every node in nodes and two columns: in_degree and out_degree. In a symmetric graph, in_degree and out_degree should match.


RoheLab/aPPR documentation built on July 1, 2024, 1:57 p.m.