Learn R Programming

Claddis (version 0.3.4)

FindLinkedEdges: Find linked edges for a tree

Description

Given a tree finds edges that are linked to each other.

Usage

FindLinkedEdges(tree)

Arguments

tree

A tree (phylo object).

Value

Returns a matrix where links are scored 1 and everything else 0. The diagonal is left as zero.

Details

Finds all edges that link (share a node) with each edge of a tree.

This is intended as an internal function, but may be of use to someone else.

Examples

Run this code
# NOT RUN {
# Create a simple four-taxon tree:
tree <- read.tree(text="(A,(B,(C,D)));")

# Find linked (1) edges matrix for tree:
FindLinkedEdges(tree)

# }

Run the code above in your browser using DataLab