fg.degreeR Documentation

Degree of the vertices in a graph

Description

Get the degree of vertices in a graph.

Usage

fg.degree(graph, mode = c("both", "in", "out"))

Arguments

graph

The FlashGraph object

mode

Character string. "out" for out-degree, "in" for in-degree, "both" for the sum of the two. This argument is ignored for undirected graphs.

Value

A numeric vector with the degree of each vertex in the graph.

Author(s)

Da Zheng <dzheng5@jhu.edu>