g1=Graph[{UndirectedEdge[a,b]}];
GraphQ[g1]
(*
OUT: True
*)
(*Needs["Combinatorica`"]*)
PlanarQ[g1]
(*
OUT: PlanarQ[.-.]
*)
Combinatorica`PlanarQ[g1]
(*
OUT: Combinatorica`PlanarQ[.-.]
*)
Why doesn’t PlanarQ give back “True” or “False” ?
Your graph is not a
Combinatoricagraph, rather it is aSystemgraph. You’ll need to specify the contexts explicitly.This returns
Truebut, in general, this process is a pain and rather buggy. I believe thatCombinatoricais on the way out and I’d recommend trying to get by without.