2
$\begingroup$

I know this is a simple question, but suppose I have a graph

G = Part[GraphData[n],i]

How do I convert this into a graph object accepted by PlanarGraphQ?

$\endgroup$
1
  • $\begingroup$ Welcome to Mathematica.SE! 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the help center! 3) When you see good questions and answers, vote them up by clicking the vote triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ Commented Sep 11, 2015 at 13:22

1 Answer 1

2
$\begingroup$

Part[GraphData[n],i] is just the name of graph. Apply GraphData to the name:

GraphData[Part[GraphData[3], 3]]
$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.