Newick - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Newick (.newick) Format

Newick file format

 

Description

Examples

References

Description

• 

Newick is a simple text-based format for describing a tree with edge lengths using parentheses and commas.

• 

The GraphTheory[Newick] can convert a Graph representing a tree to its Newick encoding as a string, and vice versa.

• 

The GraphTheory[ImportGraph] and GraphTheory[ExportGraph] commands can read from and write to this format.

• 

The general-purpose commands Import and Export also support this format.

Examples

Return the Newick encoding of a tree.

(1)

(2)

Export this to a file in the home directory of the current user.

(3)

References

  

"Newick file format", Wikipedia, https://en.wikipedia.org/wiki/Newick_format.

See Also

Formats

GraphTheory

 


Download Help Document