delete.arcs.pa {streamDAG}R Documentation

Delete arcs based on presence absence data

Description

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.

Usage


delete.arcs.pa(G, pa)

Arguments

G

A graph object of class "igraph", see graph_from_literal

pa

A vector of binary = 0,1 values indicating the absence or presence of arcs from E(G).

Value

Returns a igraph graph object missing the arcs indicated with 0 in pa.

Author(s)

Ken Aho, Gabor Csardi wrote delete.edges

Examples

G <- graph_from_literal(a--+b--+c--+d--+e)
delete.arcs.pa(G, c(0,0,1,1)) 

[Package streamDAG version 1.5 Index]