ProcessMatlabDTree: Convert a matlab edge table and predecessor list into a...

View source: R/TreeFunctions.R

ProcessMatlabDTreeR Documentation

Convert a matlab edge table and predecessor list into a directed weighted edge table

Description

Convert a matlab edge table and predecessor list into a directed weighted edge table

Usage

ProcessMatlabDTree(edge_table, predecessors)

Arguments

edge_table

a numeric matrix whose rows are undirected edges of a tree, col 1 is v1, col2 is v2, col3 is weight

predecessors

a vector of tree predecessors such that pred[i] = the predecessor of i

Value

a weighted, directed edge table


mkarikom/RSoptSC documentation built on May 10, 2023, 1:10 a.m.