I have a row vector S = [1,5,36,8,9,4] indicating the nodes whose locations are given by a LOC matrix. Also I have a distance matrix indicating the distances between these nodes. I want to construct a complete graph using these vertices i.e every vertex should touch every other vertex. How can it be done in MATLAB?

 채택된 답변

per isakson
per isakson 2014년 10월 4일
편집: per isakson 2014년 10월 4일

0 개 추천

AFAIK: It's in the Bioinformatics Toolbox. See Working with Graph Theory Functions
There might something useful in the File Exchange

댓글 수: 2

NIHARIKA
NIHARIKA 2014년 10월 4일
Is this toolbox also useful for applying minimum spanning tree on the graph?
per isakson
per isakson 2014년 10월 4일
I don't know. A simple search returned Graph::minimumSpanningTree

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

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

질문:

2014년 10월 4일

답변:

2016년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by