Generating a random directed graph (network) with some properties, efficiently
显示 更早的评论
Hi,
Im currently building a code to simulate the push/relabel max-flow algorithm.
Therefor, in order to make the simulation more entertaining and also to check myself, I need a graph generator.
The graph need to have certain properties:
-directed
-no self loops (ie no (v,v) edges)
-relatively sparse
-connected
the sparse + connected part is the problematic part for me. If anybody has any idea how to do this efficiently please share with me.
Thanks, Dan
采纳的回答
更多回答(1 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Networks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!