func NewSchemaExplorer(schema *Schema) *SchemaExplorer {
	graph := NewUndirectedGraph()
	for _, table := range schema.Tables {
		for _, foreignKey := range table.ForeignKeys {
			graph.PutSymmetric(table.Name, foreignKey.ToTable, true)
		}
	}
	return &SchemaExplorer{schema: schema, graph: graph}
}
NewSchemaExplorer returns a new SchemaExplorer instance
package db
import (
	"github.com/deckarep/golang-set"
	"sort"
)
type SchemaExplorer struct {
	schema *Schema
	graph  *UndirectedGraph
}