Skip to contents

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.