How to simulate a tree of nodes?

With first layer each connected to 2 nodes second layer each connected to 3 nodes third layer connected to 3 nodes and so on
if i type out adjacency matrix will take very long is there more efficient method of coming out with the adjacency matrix?

1 Comment

is there a simpler way?
adjacency matrix with many nodes tend to be very long horizontally and vertically

Sign in to comment.

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 29 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!