read.graph function is able to read graphs in
various representations from a file, or from a http
connection. Currently some simple formats are supported.read.graph(file, format = c("edgelist", "pajek", "ncol", "lgl",
"graphml", "dimacs", "graphdb", "gml"), ...)http or ftp connection. It can also be a character
string with the file name or URI.edgelist, pajek, graphml, gml,
ncol, lgl, dimacs and graphdb
are supported, the defaulgraph.graphdbsize in Pajek).
shape The shape of the vertex when plotted.
color Vertex color (ic in Pajek) if given with symbolic name
color-red,
color-green,
color-blue Vertex color (ic in Pajek) if given in RGB notation
framecolor Border color (bc in Pajek) if given with symbolic name
framecolor-red,
framecolor-green,
framecolor-blue Border color (bc in Pajek) if given in RGB notation
labelcolor Label color (lc in Pajek) if given with symbolic name
labelcolor-red,
labelcolor-green,
labelcolor-blue Label color (lc in Pajek) if given in RGB notation
xfact, yfact The x_fact and y_fact Pajek attributes.
labeldist The distance of the label from the vertex. (lr in Pajek.)
labeldegree,
labeldegree2 The la and lphi Pajek attributes
framewidth The width of the border (bw in Pajek).
fontsize Size of the label font (fos in Pajek.)
rotation The rotation of the vertex (phi in Pajek).
radius Radius, for some vertex shapes (r in Pajek).
diamondratio For the diamond shape (q in Pajek).l in Pajek.
color Edge color, if the color is given with a symbolic name, c in Pajek.
color-red,
color-green,
color-blue Edge color if it was given in RGB notation, c in Pajek.
edgewidth w in Pajek.
arrowsize s in Pajek.
hook1, hook2 h1 and h2 in Pajek.
angle1, angle2 a1 and a2 in Pajek, Bezier curve parameters.
velocity1,
velocity2 k1 and k2 in Pajek, Bezier curve parameter.
arrowpos ap in Pajek.
labelpos lp in Pajek.
labelangle,
labelangle2 lr and lphi in Pajek.
labeldegree la in Pajek.
fontsize fos in Pajek.
arrowtype a in Pajek.
linepattern p in Pajek.
labelcolor lc in Pajek.read.graph function may have additional arguments depending
on the file format (the format argument).
TRUE.}
}write.graph