I have a graph with disconnected nodes
If I use a LayeredDigraphLayout, the disconnected nodes would not show up,
$(go.LayeredDigraphLayout,
{
isOngoing: false,
layerSpacing: 20,
setsPortSpots: false,
columnSpacing: 20,
isRouting: true,
isValidLayout: true,
isViewportSized: true,
aggressiveOption: go.LayeredDigraphLayout.AggressiveMore,
cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
initializeOption: go.LayeredDigraphLayout.InitDepthFirstOut,
layeringOption: go.LayeredDigraphLayout.LayerOptimalLinkLength,
packOption: go.LayeredDigraphLayout.PackAll,
},
),
but the following tree layout would render the disconnected nodes, can you tell me how would I fix my LayeredDigraphLayout to display the disconnected nodes?
$(go.TreeLayout,
{
comparer: go.LayoutVertex.smartComparer,
alignment: go.TreeLayout.AlignmentStart,
treeStyle: go.TreeLayout.StyleRootOnly,
layerStyle: go.TreeLayout.LayerUniform,
nodeIndent: 100,
layerSpacing: 100,
compaction: go.TreeLayout.CompactionNone,
},
),