test_planar_graph() function

Asked by kenza gaizi on 2013-04-01

K is an adjacency matrix (6*6)

I wanted to test the planarity of the graph identified by this matrix:

>> test_planar_graph(K)

but I got:

??? Error using ==> planar_test_mex
The graph (arg=0) must be square and sparse.

Question information

Language:
English Edit question
Status:
Answered
For:
Matlab BGL Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Gleich (dgleich) said :
#1

try test_planar_graph(sparse(K))

David

On Mon, Apr 1, 2013 at 4:11 PM, kenza gaizi
<email address hidden> wrote:
> New question #225631 on Matlab BGL:
> https://answers.launchpad.net/matlab-bgl/+question/225631
>
>
> K is an adjacency matrix (6*6)
>
> I wanted to test the planarity of the graph identified by this matrix:
>
>>> test_planar_graph(K)
>
> but I got:
>
> ??? Error using ==> planar_test_mex
> The graph (arg=0) must be square and sparse.
>
> --
> You received this question notification because you are an answer
> contact for Matlab BGL.

Can you help with this problem?

Provide an answer of your own, or ask kenza gaizi for more information if necessary.

To post a message you must log in.