Learn R Programming

PairViz (version 1.3.6)

mk_complete_graph: Constructs a complete graph.

Description

Constructs a complete graph, actually an instance of graph-NEL

Usage

mk_complete_graph(d)

Value

- a graph-NEL

Arguments

d

an integer vector of length 1 which specified the number of nodes, a character vector of nodes names, a dist, or a symmetric matrix, either of which specify the nodes and edge weights.

Author

C.B. Hurley and R.W. Oldford

Examples

Run this code
	
require(PairViz)
d <- dist(rnorm(5))
g <- mk_complete_graph(d)

Run the code above in your browser using DataLab