are there any codes that check planarity of graph

2 ビュー (過去 30 日間)
NA
NA 2018 年 12 月 5 日
コメント済み: Walter Roberson 2018 年 12 月 5 日
I have this graph,
E=[1 2;1 5;2 3;2 4;2 5;3 4;4 5;4 7;4 9;5 6;6 11;6 12;6 13;
7 8;7 9;9 10;9 14;10 11;12 13;13 14]
G=graph(E(:,1),E(:,2))
plot(G)
need a code that gives me it is planer of not.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 12 月 5 日
graph theory toolbox in File Exchange
  6 件のコメント
NA
NA 2018 年 12 月 5 日
I downloaded the package.
and run this
E=[1 2;1 5;2 3;2 4;2 5;3 4;4 5;4 7;4 9;5 6;6 11;6 12;6 13;
7 8;7 9;9 10;9 14;10 11;12 13;13 14]
G=graph(E(:,1),E(:,2))
test_planar_graph(G)
give me an error
Walter Roberson
Walter Roberson 2018 年 12 月 5 日
It does not operate on graph() objects . You have to use one of the valid calling sequences . My recollection from a few weeks ago is that it takes s and t matrices .

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

カテゴリ

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