graphreduce: Make each space in a node apprear only once

View source: R/graphutils.R

graphreduceR Documentation

Make each space in a node apprear only once

Description

Reduce a graph to have unique node names

Usage

graphreduce(graph, separator)

Arguments

graph

graph of class loongraph

separator

one character that separates the spaces in node names

Details

Note this is a string based operation. Node names must not contain the separator character!

Value

graph object of class loongraph

Examples

G <- completegraph(nodes=LETTERS[1:4])
LG <- linegraph(G)

LLG <- linegraph(LG)

R_LLG <- graphreduce(LLG)



loon documentation built on July 9, 2023, 5:48 p.m.