Description Usage Arguments Value See Also
View source: R/AOPN.short.path.color.R
Provides colors for all edges in a igraph object, where the shortest path is colored, all other edges are transparent
1 2 | AOPN.short.path.color(g, fromnode, tonode, loc = F, clr = "purple",
nonclr = "transparent", weight = NA, all = T)
|
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] |
A vector of colors for edges [vector]
Other Path Operations: edges.from.path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.