How to create a complete graph in MATLAB?

31 views (last 30 days)
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?

Accepted Answer

per isakson
per isakson on 4 Oct 2014
Edited: per isakson on 4 Oct 2014
AFAIK: It's in the Bioinformatics Toolbox. See Working with Graph Theory Functions
There might something useful in the File Exchange
  2 Comments
NIHARIKA
NIHARIKA on 4 Oct 2014
Is this toolbox also useful for applying minimum spanning tree on the graph?

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 26 Apr 2016

Community Treasure Hunt

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

Start Hunting!