Convert weighted digraph to undirected
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
UQFG
am 23 Okt. 2017
Kommentiert: UQFG
am 27 Okt. 2017
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Okt. 2017
Take the adjacency matrix of the weighted digraph and add it to its transpose; build an undirected graph from the result.
3 Kommentare
Walter Roberson
am 24 Okt. 2017
https://www.mathworks.com/help/matlab/ref/graph.adjacency.html#buy61af shows how to reconstruct the weighted adjacency matrix.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Undirected Graphs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!