read_graph

0th

Percentile

Reading foreign file formats

The 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.

Keywords
graphs
Usage
read_graph(file, format = c("edgelist", "pajek", "ncol", "lgl", "graphml",
  "dimacs", "graphdb", "gml", "dl"), ...)
Arguments
file
The connection to read from. This can be a local file, or a http or ftp connection. It can also be a character string with the file name or URI.
format
Character constant giving the file format. Right now as_edgelist, pajek, graphml, gml, ncol, lgl, dimacs and graphdb are supported, the default is
...
Additional arguments, see below.
Details

The read_graph function may have additional arguments depending on the file format (the format argument). See the details separately for each file format, below.

Value

  • A graph object.

See Also

write_graph

Aliases
  • DL
  • GML
  • GraphML
  • LGL
  • Pajek
  • UCINET
  • read.graph
  • read_graph
Documentation reproduced from package igraph, version 1.0.0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.