getNumNodes: Get the Number of Nodes in a Graph

Description Usage Arguments Value Author(s) Examples

View source: R/getNumNodes.R

Description

This function will return the number of nodes for a given of graph.

Usage

1

Arguments

data

A data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge).

type

The type of graph being used (adjmatrix or adjmatrixlt).

Value

The number of individual nodes in the given graph.

Author(s)

Terrence Brooks, Berkley Shands, Skye Buckner-Petty, Patricio S. La Rosa, Elena Deych, William D. Shannon

Examples

1
2
3
4
	data(braingraphs)
	
	brainnodes <- getNumNodes(braingraphs, "adjMatrix")
	brainnodes

bingat documentation built on May 1, 2019, 9:11 p.m.