R/PlottingFunctions.R
PlotMatlabDtree.RdIf an output dir and filename are provided, a plot will be saved, otherwise the function will just return the graph. This is used for internal analysis to compare with matlab implementation.
PlotMatlabDtree(edge_table, predecessors, outputdir = NULL, outputfile = NULL)
| edge_table | a numeric matrix whose rows are directed 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 |
| outputdir | the output directory, relative to getwd() |
| outputfile | the output file |
an igraph representation of the tree