(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



SetDirectory["C:\\drorbn\\AcademicPensieve\\2011-12"];


g=N[GoldenRatio]


vs=Sort[Flatten[{
Outer[Vertex, {1,-1}, {1,-1}, {1,-1}],
Outer[Vertex, {0}, {1,-1}g, {1,-1}/g] /. v_Vertex :> {v, RotateLeft[v], RotateRight[v]}
}]] /. Vertex -> List


d[v1_, v2_] := Sqrt[(v1-v2).(v1-v2)];
es={};
Do[
If[d[vs[[i]], vs[[j]]] == Sqrt[1+(1-g)^2+(1-1/g)^2], AppendTo[es, Edge[i,j]]],
{i,1,19}, {j,i+1,20}
];
es



