Reading foreign file formats
read.graph function is able to read graphs in
various representations from a file, or from a http
connection. Currently some simple formats are supported.
read.graph(file, format = "edgelist", ...)
- The connection to read from. This can be a local file, or
- Character constant giving the file format. Right now
lglare supported, the default is
- Additional arguments, see below.
read.graph function may have additional arguments depending
on the file format (the
The resulting graph is always undirected. LGL cannot deal with files which contain multiple or loop edges, this is however not checked here, as igraph is happy with these.
lglformat is used by the Large Graph Layout visualization software (
- A graph object.