agwrite {Rgraphviz} | R Documentation

## A function to write a Ragraph object to a file

### Description

This function will take a `Ragraph` object and write it out in DOT format to a file.

### Usage

    agwrite(graph, filename)

### Arguments

`graph` | An object of class `Ragraph`
`filename` | The output filename

### Details

This function is a wrapper to the agwrite() call in Graphviz.

### Author(s)

Jeff Gentry

### See Also

`agopen`, `agread`

### Examples

    V <- letters[1:10]
    M <- 1:4
    g1 <- randomGraph(V, M, .2)
    z <- agopen(g1,"foo",layout=FALSE)
    agwrite(z,tempfile())

[Package Rgraphviz version 1.22.2 Index]