Category: imbSCI

Example: Custom converter from graph tree (graphNodeCustom) to DGML

  /// <summary> /// Custom implementation of <see cref=”graphNodeCustom”/> to DGML converter /// </summary> /// <seealso cref=”imbSCI.Graph.Converters.graphToDirectedGraphConverterBase{imbSCI.Data.collection.graph.IGraphNode}” /> public class pipelineSubjectGraphConverter : graphToDirectedGraphConverterBase<pipelineTaskSubjectContentToken> { public pipelineSubjectGraphConverter() : base() { setup = new GraphStylerSettings(); setup.GraphDirection = imbSCI.Graph.DGML.enums.GraphDirectionEnum.LeftToRight; setup.GraphLayout = imbSCI.Graph.DGML.enums.GraphLayoutEnum.DependencyMatrix; setup.alphaMin = 0.7; setup.NodeGradient = new ColorGradient(“#FF195ac5”, “#FF195ac5”, ColorGradientFunction.AtoB | ColorGradientFunction.Hue | ColorGradientFunction.CircleCCW); setup.LinkGradient = new…

Example: Custom conversion from FreeGraph to DirectedGraph

Code example about customized FreeGraph conversion to DGML. using imbSCI.Graph.FreeGraph; using imbSCI.Graph.DGML; using imbSCI.Graph.DGML.core; imbSCI.Graph library is available via NuGet. /// <summary> /// Generates simple-styled graph /// </summary> /// <param name=”addLegend”>if set to <c>true</c> [add legend].</param> /// <returns></returns> public DirectedGraph GetSimpleGraph(Boolean addLegend=true) { DirectedGraph output = new DirectedGraph(); output.Title = name; output.Layout = imbSCI.Graph.DGML.enums.GraphLayoutEnum.Sugiyama; output.NeighborhoodDistance…