write.tgf: Saving a concept map to a TGF file

Description Usage Arguments Value Examples

Description

write.tgf stores the graph underlying a conceptmap object into a file using the "Trivial Grpah Format" (TGF).

Usage

1
write.tgf(map, file, translation = NULL)

Arguments

map

A conceptmap object.

file

The location including filename where the file should be stored.

translation

If not NULL, a vector of strings of equal length as the number of concepts used in the concept map. Then, the names given in this vector will be used in the file instead of the original concepts. Can be used, for example, to translate the concepts into a different language for export.

Value

-

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
#Create concept map from a random graph
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)

write.tgf(conceptmap(g1), "~/cmap.tgf", 
          translation = c("Node_1", "Node_2", "Node_3", "Node_4", "Node_5"))

## End(Not run)

comato documentation built on May 2, 2019, 6:52 a.m.

Related to write.tgf in comato...