graph: A Graph Function

Description Usage Arguments Value

Description

This function returns a graph object stored as an adjacency matrix.

Usage

1
graph(nodes, weighted = FALSE, directed = FALSE, useAdjMatrix = TRUE)

Arguments

nodes

A vector of nodes

weighted

TRUE if the graph is weighted or FALSE. Defaults to FALSE.

directed

TRUE if graph is directed. Defaults to FALSE.

useAdjMatrix

TRUE if an adjacency matrix is used internally or FALSE to use a list

Value

A graph object


TheBell/Graph documentation built on May 5, 2019, 4:48 p.m.