makeGraphComplete | R Documentation |
Graph Constructor Functions
makeGraphComplete(n, type = "undirected")
makeGraphEmpty(n)
makeGraphChain(n, type = "undirected")
makeGraphCycle(n, type = "undirected")
makeGraphStar(n, type = "undirected", out = FALSE)
makeGraphGrid(n, m = n, type = "undirected")
makeGraphBipartite(n, m, type = "undirected")
n |
number of vertices (or rows for a grid) |
type |
type of edges to use |
out |
should edges be directed out from the centre? |
m |
number of columns or size of second set |
Provides some construction functions for common graphs: complete graphs, chains, cycles and stars.
makeGraphEmpty()
: graph with no edges
makeGraphChain()
: graph with chain of edges
makeGraphCycle()
: graph with cycle of edges
makeGraphStar()
: star shaped graph
makeGraphGrid()
: grid of vertices
makeGraphBipartite()
: bipartite graph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.