make_edges_mixed: Make some edges directed and some undirected

View source: R/edge.R

make_edges_mixedR Documentation

Make some edges directed and some undirected

Description

This function creates a mixed network, meaning that some edges are directed, and some are undirected. In practice this is implemented as a directed network in which those edges that are meant to be undirected are duplicated and reversed.

Usage

make_edges_mixed(x, directed)

Arguments

x

An object of class sfnetwork.

directed

An integer vector of edge indices specifying those edges that should be directed.

Value

A mixed network as object of class sfnetwork.


luukvdmeer/sfnetworks documentation built on Nov. 21, 2024, 4:54 a.m.