Convert weighted digraph to undirected

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

Accepted Answer

Walter Roberson
Walter Roberson on 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 Comments
UQFG
UQFG on 27 Oct 2017
Thank you for that link!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!