Generating all possible spanning trees in matlab

조회 수: 5 (최근 30일)
Sim
Sim 2011년 12월 1일
댓글: Ihsan 2014년 10월 22일
Hello every1,
I am completely new to MATLAB and require some help regarding my research work. I need to work with graphs in MATLAB and my question is that how can we generate spanning trees of a graph in MATLAB. A graph can be entered through an adjacency matrix into MATLAB but how can that matrix be expanded to generate all the possible spanning trees of that particular graph. Can any1 help me solve this issue....??????
Thanks, Sim
  댓글 수: 1
Ihsan
Ihsan 2014년 10월 22일
Dear Sim have u find answer of your question ?

댓글을 달려면 로그인하십시오.

채택된 답변

Sim
Sim 2011년 12월 1일
Okie guys i have got it how to display an undirected connected graph with N vertices and E edges using an adjacency matrix, But now how can i generate all its possible spanning trees???? The formula for getting total number of spanning trees of a graph is:
Cayley's formula : N^N-2 Where N is the Total vertices
if N= 4 then
N^N-2= 4^4-2= 16 SPANNING TREES
My question is "how can i create all these 16 spanning trees of a graph in matlab?????
Pleaseeeeeeeeeeeeee help :(
Sim
  댓글 수: 2
Hin Kwan Wong
Hin Kwan Wong 2011년 12월 1일
Try to look for programs people wrote at:
http://www.mathworks.com/matlabcentral/fileexchange/?term=spanning+tree
Walter Roberson
Walter Roberson 2011년 12월 2일
A response time of just over 4 hours is not unusual for less common topics. Your post was during typical employment hours in both Western Europe and North America.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by