I am using Unity 2019.4.15f1
the new code gives me a new error.
rgumentException: No shape of the room Edgar.GraphBasedGenerator.Common.RoomNode`1[Edgar.Unity.RoomBase] could be connected to its neighbors. This usually happens if there are pairs of shapes that cannot be connected together in any way (either directly or via corridors). (The mentioned room may not correspond to the actual room as custom types are often mapped to integers to make the computation faster.)
Edgar.GraphBasedGenerator.Common.LayoutController`5[TLayout,TNode,TConfiguration,TShapeContainer,TEnergyData].AddNodeGreedily (TLayout layout, TNode node, System.Int32& iterationsCount) (at <52d877296fbf43209c7081a55723a5a2>:0)