A number of errors are thrown, play source code follows.
I'm developing a simple tool to import schema definitions from a CRM product and display tables with foreign key links which don't use foreign key rel but some other meta data.
Sample input is three tables.
I can get one of the following:
No nodes in diagram:
System.ArgumentOutOfRangeException occurred
Message="Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
Source="mscorlib"
ParamName="index"
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MindFusion.Graphs.Graph.xc8338fd6506eada4(Int32 xb6a159a84cb992d6, Int32 xedfe2ee58715c12f, List`1 xf30b13768f720212)
at MindFusion.Graphs.Graph.MakeBiconnected()
at MindFusion.Graphs.OrthogonalDrawing..ctor(Graph graph, Boolean directed)
at MindFusion.Layout.x6c49a7edd6c3dab9.xb7874248b0c0bc2d(x5e63d74830b5db57 x43be2e1940c135f9, xd73e2a0d3761a797 x8d3f74e5f925679c, x78e3ce9dc43283f0 x22bfd1664c623dc4)
at MindFusion.Diagramming.Layout.OrthogonalLayout.Arrange(Diagram diagram, DiagramItemCollection items)
at MindFusion.Diagramming.Layout.Layout.Arrange(Diagram diagram)
at PivotalDocumenter.MainForm.btnDiagram_Click(Object sender, EventArgs e) in C:\Development\PivotalDocumenter\MainForm.cs:line 140
InnerException:
Nodes, even just one:
System.ArgumentException occurred
Message="An item with the same key has already been added."
Source="mscorlib"
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at MindFusion.Graphs.Set`1.Add(T element)
at MindFusion.Graphs.DualGraph.GetFaceVertices(List`1 faceList)
at MindFusion.Graphs.Graph.Planarize(Dictionary`2 edgeToDummyEdgesMap)
at MindFusion.Graphs.OrthogonalDrawing..ctor(Graph graph, Boolean directed)
at MindFusion.Layout.x6c49a7edd6c3dab9.xb7874248b0c0bc2d(x5e63d74830b5db57 x43be2e1940c135f9, xd73e2a0d3761a797 x8d3f74e5f925679c, x78e3ce9dc43283f0 x22bfd1664c623dc4)
at MindFusion.Diagramming.Layout.OrthogonalLayout.Arrange(Diagram diagram, DiagramItemCollection items)
at MindFusion.Diagramming.Layout.Layout.Arrange(Diagram diagram)
at PivotalDocumenter.MainForm.btnDiagram_Click(Object sender, EventArgs e) in C:\Development\PivotalDocumenter\MainForm.cs:line 140
InnerException:
or
System.Collections.Generic.KeyNotFoundException occurred
Message="The given key was not present in the dictionary."
Source="mscorlib"
StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MindFusion.Graphs.DualGraph.GetIncidentFaces(Vertex v)
at MindFusion.Graphs.DualGraph.SplitExternalFace(Vertex s, Vertex t)
at MindFusion.Graphs.Representation..ctor(Graph stGraph, Boolean weighted)
at MindFusion.Graphs.OrthogonalDrawing..ctor(Graph graph, Boolean directed)
at MindFusion.Layout.x6c49a7edd6c3dab9.xb7874248b0c0bc2d(x5e63d74830b5db57 x43be2e1940c135f9, xd73e2a0d3761a797 x8d3f74e5f925679c, x78e3ce9dc43283f0 x22bfd1664c623dc4)
at MindFusion.Diagramming.Layout.OrthogonalLayout.Arrange(Diagram diagram, DiagramItemCollection items)
at MindFusion.Diagramming.Layout.Layout.Arrange(Diagram diagram)
at PivotalDocumenter.MainForm.btnDiagram_Click(Object sender, EventArgs e) in C:\Development\PivotalDocumenter\MainForm.cs:line 140
InnerException: