コード例 #1
0
        /// <summary>
        /// Creates a new <see cref="AggregateGraphWrapper"/> and runs the aggregation algorithm.
        /// </summary>
        private async Task RunAggregationAndReplaceGraph(IGraph originalGraph)
        {
            var aggregateGraph = new AggregateGraphWrapper(originalGraph)
            {
                EdgeReplacementPolicy = EdgeReplacementPolicy.None
            };

            await ApplyAggregation(originalGraph, aggregateGraph);

            GraphControl.Graph = aggregateGraph;

            // initializes the highlight styles of the graphControl's current graph
            InitializeHighlightStyles();

            await RunBalloonLayout();
        }
コード例 #2
0
 /// <summary>
 /// Creates a new instance of this class.
 /// </summary>
 public AggregationHelper(NodeAggregation.Result aggregationResult, AggregateGraphWrapper aggregateGraph)
 {
     AggregateGraph         = aggregateGraph;
     this.aggregationResult = aggregationResult;
 }