Learn R Programming

bingat (version 1.3)

getNumEdges: Get the Number of Edges in a Graph

Description

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

Usage

getNumEdges(nodes, type)

Arguments

nodes

The number of individual nodes in a given graph.

type

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

Value

The number of edges between individual nodes in the given graph.

Examples

Run this code
	data(braingraphs)
	
	brainnodes <- getNumNodes(braingraphs, "adjMatrix")
	brainedges <- getNumEdges(brainnodes, "adjMatrix")
	brainedges

Run the code above in your browser using DataLab