read.gml: Read 'gml' Files

read.gmlR Documentation

Read gml Files

Description

A function to read files with the gml format.

Usage

read.gml(file, as = c("srt", "array"), directed = TRUE, coords = FALSE)

Arguments

file

character vector containing a file name or path

as

should the data be given as a srt or with an array format?

directed

(logical) whether the graph is directed or undirected.

coords

(logical) whether the coordenates in the gml file should be included.

Details

The gml format, an acronym for graph modelling language, provides capabilities to represent multiple networks and add arguments both to the nodes and the edges for visualization purposes.

For the multiplexity in the ties the gml file distinguishes “graphics” arguments inside “edge”. Both “style” and “fill” are supported here and the former has priority over the latter in case the two are given; otherwise when these arguments are absent, the function separates up to a couple of relational levels when several pairwise ties are specified.

Value

Depending the option chosen, the output is either a data frame or an array representing the multigraph. If the coordenates are chosen then these are part of the obejct structure, but they are not visible.

Note

If the coordenates are chosen, node attributes can also be retrieved.

Author(s)

Antonio Rivero Ostoic

References

visone Software for the analysis and visualization of social networks. http://visone.info

See Also

write.gml, edgel, read.dl


mplex/multiplex documentation built on April 9, 2024, 3:12 a.m.