importDIMACSAscii {gcolor}R Documentation

IMPORT DIMACS GRAPH (ASCII FILE)

Description

Import a DIMACS GRAPH from a DIMACS ASCII File. Most of the time the file is a .col file in DIMACS ASCII format.

Usage

importDIMACSAscii(filename)

Arguments

filename The DIMACS binary file to be imported into R. If not provided, the function will request it (in Windows will show a popup).

Details

The importDIMACSAscii will ask you to locate the file to be imported. If the file is in the DIMACS format, a matrix will be returned. The matrix will contains 0 and 1, where 1 are the edges of the DIMACS Graph.

Value

A matrix with the edges read from the DIMACS File.

Note

The file must be DIMACS format ascii file.

Author(s)

Euripides Rivera Negron

See Also

importDIMACSBin, matrix

Examples


## Import the Graph
## Not run: dimacMatrix<-importDIMACSAscii()

## Solve the Graph with ineq
## Not run: solution<-ineq(importDIMACSAscii())

[Package gcolor version 1.0 Index]