R/TreeFunctions.R
ProcessMatlabDTree.RdConvert a matlab edge table and predecessor list into a directed weighted edge table
ProcessMatlabDTree(edge_table, predecessors)
| 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 |
a weighted, directed edge table