phylopomp
Phylodynamics for POMPs
Loading...
Searching...
No Matches
newick.cc File Reference
#include "ball.h"
#include "node.h"
#include "nodeseq.h"
#include "genealogy.h"
#include "internal.h"
#include <R.h>
#include <Rmath.h>
#include <Rdefines.h>
Include dependency graph for newick.cc:

Go to the source code of this file.

Functions

SEXP newick (SEXP State, SEXP Extended)
 tree in newick format
 

Function Documentation

◆ newick()

SEXP newick ( SEXP State,
SEXP Extended )

tree in newick format

Definition at line 102 of file newick.cc.

102 {
103 PROTECT(Extended = AS_LOGICAL(Extended));
104 bool extended = *LOGICAL(Extended);
105 genealogy_t A(State);
106 UNPROTECT(1);
107 return mkString(A.newick(extended).c_str());
108 }
Encodes a genealogy.
Definition genealogy.h:19
Here is the call graph for this function: