reorg. imports; documented hasEdge