Convert weighted digraph to undirected
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there any way of converting a weighted digraph to undirected?
eg. Node1-Node2-Weight A-B-1 B-A-1
Will become: A-B-2 ?
0 commentaires
Réponse acceptée
Walter Roberson
le 23 Oct 2017
Take the adjacency matrix of the weighted digraph and add it to its transpose; build an undirected graph from the result.
3 commentaires
Walter Roberson
le 24 Oct 2017
https://www.mathworks.com/help/matlab/ref/graph.adjacency.html#buy61af shows how to reconstruct the weighted adjacency matrix.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Undirected Graphs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!