コード例 #1
0
        private IDiagramGraph GetGraph(ModelRelationshipStereotype stereotype)
        {
            var transitivityPartitionKey = _modelRelationshipFeatureProvider.GetTransitivityPartitionKey(stereotype);

            _diagramGraphsByRelationshipTransitivityGroup.TryGetValue(transitivityPartitionKey, out var graph);
            return(graph ?? DiagramGraph.Empty());
        }
コード例 #2
0
ファイル: LayoutGroup.cs プロジェクト: tyeth/QuickDiagram
 public static ILayoutGroup Empty(ModelNodeId?parentNodeId = null)
 {
     return(new LayoutGroup(parentNodeId, DiagramGraph.Empty(allowParallelEdges: false)));
 }