View source: R/delete_arcs_pa.R
delete.arcs.pa | R Documentation |
Create a new graph after deleting stream graph arcs based on presence/absence data, e.g., data based on outcomes from STIC (Stream Temperature, Intermittency, and Conductivity) loggers.
delete.arcs.pa(G, pa)
G |
A graph object of class "igraph", see |
pa |
A vector of binary = 0,1 values indicating the absence or presence of arcs from |
Returns a igraph graph object missing the arcs indicated with 0 in pa
.
Ken Aho, Gabor Csardi wrote delete.edges
G <- graph_from_literal(a--+b--+c--+d--+e)
delete.arcs.pa(G, c(0,0,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.