Finding all Eulerian Paths in an undirected graph

17 ビュー (過去 30 日間)
Anthony Stuart
Anthony Stuart 2020 年 8 月 24 日
回答済み: Pranav Verma 2020 年 8 月 28 日
I'm trying to write a script that takes an undirected graph G and returns a matrix of all the possible Eulerian paths that go through each edge exactly once (assuming that the graph is either an Eulerian loop or path. I've found some resources for how to do this in C++ by creating a separate graph class, but I was wondering if there is an easy way to do it using the built in tools for undirected graphs in Matlab.

採用された回答

Pranav Verma
Pranav Verma 2020 年 8 月 28 日
Hi Anthony,
You can try utilising the Matgraph toolbox for your problem. A function euler_trail exists in the toolbox which may help you in proceeding with your task. Below is the link to the toolbox:
Please go through the above link and add the Matgraph add-on in Matlab.
For undirected graphs in Matlab, please refer to the below documentation where it lists all the functions that are available in Matlab along with some examples:
For further information on graph algorithms, please refer to the below documentation;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeUndirected Graphs についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by