importDIMACSBin {gcolor}R Documentation

IMPORT DIMACS GRAPH (BINARY FILE)

Description

Import a DIMACS GRAPH from a DIMACS binary file. Most of the time the file is a .col.b file in DIMACS binary format.

Usage

importDIMACSBin(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 importDIMACSBin 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 a DIMACS format binary file.

Author(s)

Euripides Rivera Negron

See Also

importDIMACSAscii, matrix

Examples


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

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

[Package gcolor version 1.0 Index]