Next: Edgeless Graphs
Up: Representation and Utilities
Previous: Representation and Utilities
At the most basic level, we represent trees as an adjacency matrix,
a tree with
vertices indexing these vertices as
.
A disadvantage to this approach is that trees which are isomorphic
may not have the same adjacency matrix due to the ordering of vertices.
For instance, a line on 3 vertices can appear as both of the following:
Nonetheless, we use this representation internally and address
this issue later.
Consistent with usual convention, we will use
to denote the
set of vertices in
, and
the set of edges in
.
Joshua Taylor
2005-04-27