Learn R Programming

RnavGraph (version 0.1.8)

completegraph: Create a complete graph of class graphAM

Description

(From Wikipedia) A complete graph is a simple graph in which every pair of distinct vertices is connected by a unique edge.

Usage

completegraph(nodeNames)

Arguments

nodeNames
Numeric or character string vector.

Value

graphAM object.

See Also

navGraph, newgraph, linegraph

Examples

Run this code
G1 <- completegraph(1:10)
G2 <- completegraph(LETTERS[1:7])

Run the code above in your browser using DataLab