How to create a complete graph in MATLAB?

16 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

Walter Roberson
Walter Roberson il 26 Apr 2016

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by