graph.nodes: Return root, end, or branchpoints of an igraph object

Description Usage Arguments Details

View source: R/graph-nodes.R

Description

Return root, end, or branchpoints of an igraph object

Usage

1
2
3
4
5
6
graph.nodes(
  x,
  type = c("root", "end", "branch"),
  original.ids = "label",
  exclude.isolated = TRUE
)

Arguments

x

An igraph object

type

one of root, end (which includes root) or branch

original.ids

Use named attribute to return original vertex ids (when available). Set to FALSE when this is not desired.

exclude.isolated

Do not count isolated vertices as root points (default)

Details

Note that the graph must be directed in order to return a root point


nat documentation built on Sept. 6, 2021, 5:09 p.m.