Learn R Programming

wdnet (version 1.2.3)

fill_weight_cpp: Fill edgeweight into the adjacency matrix. Defined for function edgelist_to_adj.

Description

Fill edgeweight into the adjacency matrix. Defined for function edgelist_to_adj.

Usage

fill_weight_cpp(adj, edgelist, edgeweight)

Value

Adjacency matrix with edge weight.

Arguments

adj

An adjacency matrix.

edgelist

A two column matrix represents the edgelist.

edgeweight

A vector represents the weight of edges.