write.graph: Writing the graph to a file in some format

View source: R/foreign.R

write.graphR Documentation

Writing the graph to a file in some format

Description

[Deprecated]

write.graph() was renamed to write_graph() to create a more consistent API.

Usage

write.graph(
  graph,
  file,
  format = c("edgelist", "pajek", "ncol", "lgl", "graphml", "dimacs", "gml", "dot",
    "leda"),
  ...
)

Arguments

graph

The graph to export.

file

A connection or a string giving the file name to write the graph to.

format

Character string giving the file format. Right now pajek, graphml, dot, gml, edgelist, lgl, ncol and dimacs are implemented. As of igraph 0.4 this argument is case insensitive.

...

Other, format specific arguments, see below.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.