branch_list: branch_list: Get Branch for Each Node on the Tree or Path

Description Usage Arguments Author(s) References Examples

View source: R/tjGCluster.R

Description

branch_list returns a list of branches for the nodes on the tree or path. It can be used for obtainning the branches for the nodes on the spine skeleton of minimum spanning tree.

Usage

1
branch_list(g, nodes);

Arguments

g

graph object

nodes

character: vertices of the branch

Author(s)

Ying Hu yhu@mail.nih.gov

Chunhua Yan yanch@mail.nih.gov

Xiaoyu Liang xiaoyu.liang@yale.edu

References

Csardi, G., & Nepusz, T. (2006). The igraph software package for complex network research. InterJournal, complex systems, 1695(5), 1-9.

Examples

1
2
3
4
5
6
data(i2d_Example,package="i2d")
## Just use 30 points as an example
dat <- i2d(image=i2d_Example, p.n=30)
tj=tjGCluster(dat, from=NULL, to=NULL)
plot(tj$mst)
br.list  <- branch_list(tj$mst, tj$node)

XiaoyuLiang/i2d documentation built on Oct. 20, 2020, 11:05 p.m.