Biograph for Dijktra's algorithm

8 visualizaciones (últimos 30 días)
Arturas Baltrusaitis
Arturas Baltrusaitis el 1 de Mzo. de 2015
Respondida: Paola Favaretto el 9 de Abr. de 2015
Hey guys,
My main task is to transform Dijkstra's algorithm to Matlab and find shortest path. I done everything, code works fine and I'm using Biographs to plot the paths. Anyway, to make it look more professional, I was thinking about making an animation, how the route is moving step by step. Anyone done it before with Biograph? Thanks for any help. My plot code:
h = view(biograph(DG,[],'ShowWeights','on'))
set(h.Nodes(ShortestPath),'Color',[1 0.4 0.4])
edges = getedgesbynodeid(h,get(h.Nodes(ShortestPath),'ID'));
set(edges,'LineColor',[1 0 0])
set(edges,'LineWidth',1.5)

Respuestas (1)

Paola Favaretto
Paola Favaretto el 9 de Abr. de 2015
Hi Arturas,
Check out this example from the Bioinformatics Toolbox documentation:
Towards the end of the example, there is an animation (triggered with the MATLAB command MOVIE) that shows how the particular phylogenetic tree is iteratively built. You could use a similar approach with your graph.
-Paola

Categorías

Más información sobre Genomics and Next Generation Sequencing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by