Re:programming challenge
by jaekwon on Sunday October 17, 2010 @12:04PM
(#1800634)
The social graph need not be planar, say if the world is a donut.
[ Parent
| on HN ]
I'd consider that a minor adjustment as it would still essentially be a planar graph (with periodic boundary conditions). Locally both of the cases look identical.
Just checked wiki while writing this and toroidal embeddings are a subclass of planar graphs.
I'm sorry, the puzzle is asking for a global property. The new text has the adjustments.
I think I got it now. Don't read this if you are afraid of possible spoiling.
We are looking for a graph with highest possible minimum vertice count for any single node. The answer is 6. This graph comes from simply making a hexagonal tiling with node on center and vertices going trough edges. Any tiling with more angles does not produce a planar graph and we'd have to insert polygons with less vertices and thus less neighbours and therefore lowering the smallest edge count.
I don't think it's possible to tile a sphere with hexagons. You have to throw a couple of pentagons in.