 (ns blutwurst.planner
     (:require [taoensso.timbre :as timbre :refer [trace]]
+              [clojure.set :as setops]
               [clojure.pprint :refer :all]))
 
 (defn- find-nodes-without-incoming-connections [nodes edges]

                 edges)
         nodes))

(defn- topological-schema-sort [all-nodes nonentrant-nodes edges result]
)

(defn- extract-edges [nodes]

 (let [nodes (:tables schema)
       edges (extract-edges nodes)]
  (pprint edges)
  (trace "Preparing to sort graph....")

  (topological-schema-sort nodes 
                           (find-nodes-without-incoming-connections nodes edges) 
