as.ngraph
converts an object to an ngraph
as.ngraph.dataframe
construct ngraph from a
data.frame containing SWC format data
as.ngraph.neuron
construct ngraph from a neuron
ngraph(el, vertexlabels, xyz = NULL, directed = TRUE,
graph.attributes = NULL)as.ngraph(x, ...)
## S3 method for class 'data.frame':
as.ngraph(x, directed = TRUE, ...)
## S3 method for class 'neuron':
as.ngraph(x, directed = TRUE, method = c("swc", "seglist"),
...)
igraph
object with additional class
ngraph
, having a vertex for each entry in
vertexlabels, each vertex having a label
attribute.
All vertices are included whether connected or not.Note that this method always keeps the original vertex labels (a.k.a. PointNo) as read in from the original file.
igraph
Other neuron: as.neuron
,
as.neuron.data.frame
,
as.neuron.default
,
as.neuron.ngraph
, is.neuron
,
neuron