AOPN.short.path.color: AOPN.short.path.color

Description Usage Arguments Value See Also

View source: R/AOPN.short.path.color.R

Description

Provides colors for all edges in a igraph object, where the shortest path is colored, all other edges are transparent

Usage

1
2
AOPN.short.path.color(g, fromnode, tonode, loc = F, clr = "purple",
  nonclr = "transparent", weight = NA, all = T)

Arguments

g

[igraph object]

fromnode

The first KE in the path [vertex of igraph object]

tonode

The final KE in the path [vertex of igraph object]

loc

Leave originial color? TRUE leaves as orginial color, Default=FALSE [boolean]

clr

Specified color for path, default="purple" [R color]

nonclr

Non-path color, default="transparent" [R Color]

weight

Edge weights for shortest path algorithm, default=NA [vector]

all

Color all shortest paths or just the first detected? TRUE colors all, default=TRUE [boolean]

Value

A vector of colors for edges [vector]

See Also

Other Path Operations: edges.from.path


npollesch/AOPNet documentation built on Jan. 9, 2021, 12:39 a.m.