placeNodes: Placement of graph nodes

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Places the nodes of a graph according to a specified layout.

Usage

1
placeNodes(graph, nrow, ncol, byrow = TRUE, topdown = TRUE, force = FALSE)

Arguments

graph

A graph of class graphMCP or class entangledMCP.

nrow

The desired number of rows.

ncol

The desired number of columns.

byrow

Logical whether the graph is filled by rows (otherwise by columns).

topdown

Logical whether the rows are filled top-down or bottom-up.

force

Logical whether a graph that has already a layout should be given the specified new layout.

Details

If one of nrow or ncol is not given, an attempt is made to infer it from the number of nodes of the graph and the other parameter. If neither is given, the graph is placed as a circle.

Value

The graph with nodes placed according to the specified layout.

Author(s)

Kornelius Rohmeyer rohmeyer@small-projects.de

See Also

graphMCP, entangledMCP

Examples

1
2
3
4
5
6
7
8
9
g <- matrix2graph(matrix(0, nrow=6, ncol=6))

g <- placeNodes(g, nrow=2, force=TRUE)

## Not run: 
graphGUI(g)


## End(Not run)

gMCP documentation built on May 2, 2019, 6:07 p.m.