write.tgf.folder {comato} | R Documentation |
Saving a set of concept maps to TGF files
Description
write.tgf.folder
stores the graphs underlying the maps of a conceptmaps object into a folder using the "Trivial Grpah Format" (TGF).
The function calls write.tgf
for each of the maps of a conceptmaps object. The files will be named "1.tgf", "2.tgf" and so on.
Usage
write.tgf.folder(maps, folder, translation = NULL)
Arguments
maps |
A conceptmap object. |
folder |
The location where the files should be stored. The folder is created, if necessary. |
translation |
See |
Value
-
Examples
## Not run:
#Create concept maps from three random graphs
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g2 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g3 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
#Create conceptmaps object from three conceptmap objects
simple_cms = conceptmaps(list(conceptmap(g1), conceptmap(g2), conceptmap(g3)))
write.tgf.folder(simple_cms, "~/cmaps")
## End(Not run)
[Package comato version 1.1 Index]