importDIMACSAscii {gcolor} | R Documentation |
Import a DIMACS GRAPH from a DIMACS ASCII File. Most of the time the file is a .col file in DIMACS ASCII format.
importDIMACSAscii(filename)
filename |
The DIMACS binary file to be imported into R. If not provided, the function will request it (in Windows will show a popup). |
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.
A matrix with the edges read from the DIMACS File.
The file must be DIMACS format ascii file.
Euripides Rivera Negron
## Import the Graph ## Not run: dimacMatrix<-importDIMACSAscii() ## Solve the Graph with ineq ## Not run: solution<-ineq(importDIMACSAscii())