public GraphDescription FillDescription(GraphDescription description) { description.Name = GraphName; description.Type = GraphType; description.FlowModel = FlowModel; return(description); }
public GraphDescription FillDescription(GraphDescription description) { description.Edges = new List <GraphEdge>(); description.Edges.AddRange(from edge in Edges select new GraphEdge { From = edge.From, To = edge.To }); return(description); }
void OnFinish() { var description = new GraphDescription(); var pageVm = _infoPageView.DataContext as WizardInfoPageViewModel; description = pageVm.FillDescription(description); var edgesVm = _edgesPageView.DataContext as WizardEdgesPageViewModel; description = edgesVm.FillDescription(description); var nodesVm = _nodesPageView.DataContext as WizardNodesPageViewModel; description = nodesVm.FillDescription(description); _eventAggregator.GetEvent <FillTextInputEvent>().Publish(description.ToString()); Close(); }
public GraphDescription FillDescription(GraphDescription description) { description.Nodes = new List <GraphNode>(); if (Nodes != null) { description.Nodes.AddRange(from node in Nodes select new GraphNode() { Name = node.Name, Label = node.Label, Shape = node.Shape, Color = node.Color, FontColor = node.FontColor, FontSize = node.FontSize, Style = node.Style, FillColor = node.FillColor, }); } return(description); }
protected internal virtual void CreateGraph(params string[] description) { _nodes = CreateGraph(GraphDescription.create(description)); }
/// <summary> /// Compiles a graph of DirectML operators into an object that can be dispatched to the GPU. /// </summary> /// <remarks> /// <para> /// See Microsoft Docs: /// <see href="https://docs.microsoft.com/en-us/windows/win32/api/directml/nf-directml-idmldevice1-compilegraph"/> /// </para> /// </remarks> /// <param name="graphDescription">A description of the graph to compile.</param> /// <param name="executionFlags">Any flags to control the execution of this operator.</param> /// <returns></returns> public IDMLCompiledOperator CompileGraph(GraphDescription graphDescription, ExecutionFlags executionFlags) { CompileGraph(ref graphDescription, executionFlags, typeof(IDMLCompiledOperator).GUID, out IntPtr nativePtr).CheckError(); return(new IDMLCompiledOperator(nativePtr)); }
private void InitializeInstanceFields() { Data = TestData.producedThrough(GraphDescription.createGraphFor(this, true)); }