Cycle basis for large graph

5 ビュー (過去 30 日間)
Tala Dannawi
Tala Dannawi 2023 年 6 月 5 日
コメント済み: Tala Dannawi 2023 年 6 月 16 日
I have a graph of around 3 million nodes and 10 million edges.
I want to get the cycle basis of the graph but it runs out of memory when using the command cyclebasis(G).
Is there a way to solve it?
  3 件のコメント
Tala Dannawi
Tala Dannawi 2023 年 6 月 6 日
Thank you Christine, as you have suggested I tried modifying cyclebasis but got an error (unable to save file, access denied)..
Christine Tobler
Christine Tobler 2023 年 6 月 7 日
You can't modify a file that is part of MATLAB. You could make a copy and modify that.

サインインしてコメントする。

回答 (1 件)

Muskan
Muskan 2023 年 6 月 15 日
Hi Tala,
As per my understanding of the question, when dealing with large graphs such as the one you described, calculating the cycle basis using the cyclebasis(G) command in MATLAB may not be feasible due to memory constraints.
One way to solve this problem is to use a smaller representation of the graph. For example, you could use a sparse matrix representation, which would use less memory than a dense matrix representation
Finally, you could try to reduce the size of the graph by removing some of the edges. This could be done by using a graph simplification algorithm, such as the Kruskal algorithm or the Prim algorithm.
I hope the above information helps resolve your query.
Thanks
  1 件のコメント
Tala Dannawi
Tala Dannawi 2023 年 6 月 16 日
Thank you Muskan :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by