logicMap: Logic Map

Description Usage Arguments Details Value Author(s) Examples

Description

This function is used to change the node display.

Usage

1
2
logicMap(x, base.colour, start.colour, end.colour, names = NULL, newValue,
  default.colour = TRUE, no.label = FALSE)

Arguments

x

This is taken from the logic derived using the igraph package.

base.colour

This is the colour of all the nodes if no colour is specified

start.colour

This is the colour of the first node

end.colour

This is the colour of the last node

names

If names=NUll then use default names in the package

newValue

This is the value of the number of nodes from the logic

default.colour

If TRUE, then the colours of the node will not change. If FALSE, the colours of the node will change.

no.label

If no.labels is TRUE, then it will not print the names in the nodes. If FALSE, then it will be numeric values.

Details

This functions is embedded with check.graph, edge.v, colour_display. For example, you can use this function to add in names inside the node, or change the width of the edge, or to include the labels in the nodes given by the names arg. Generally, it is used for the assisting in the design of the network maze

This allow us to create a map with close looped form

Value

The map item based on the logic of the igraph package

Author(s)

Aiden Loe

Examples

1
2
3
logic <- nodeLogic(value = 8, type= "circuit", itemFamily= 1)
names <- c('a','b','c','d','e','f','g')
logicMap(logic, no.label=FALSE, names=names)

Example output

IGRAPH 07dfe9b UN-- 4 4 -- 
+ attr: name (v/x)
+ edges from 07dfe9b (vertex names):
[1] d--g d--c b--g b--c

networkGen documentation built on May 6, 2019, 1:10 a.m.