seglist
makes a seglist object from a list of
integer vectors of raw vertex ids. As a convenience if a
vector of numeric ids are passed these are assumed to
specify a neuron with 1 segment.as.seglist.igraph
will convert a fully connected
acyclic ngraph or igraph object into a seglist consisting
of exactly one subtree.
seglist(...)as.seglist(x, ...)
## S3 method for class 'igraph':
as.seglist(x, origin = NULL, Verbose = FALSE, ...)
seglist
integer vectors to convert
to a seglistlist
with additional class seglist
.a list
with one entry for each unbranched segment.
neuron
for further information about
seglists.If the graph vertices have vid
attributes, typically
defining the original vertex ids of a graph that was then
decomposed into subgraphs, then the origin is assumed to
refer to one of these vids not a raw vertex id of the
current graph. The returned seglist will also contain these
original vertex ids.
neuron