private void ConfigurePackageNode(DirectedGraphNode node, IPackage package)
 {
     if (!package.IsReleaseVersion())
     {
         node.Background = _palette.PrereleaseColor;
     }
 }
 private DirectedGraphLink CreateLink(DirectedGraphNode source, DirectedGraphNode target)
 {
     var link = new DirectedGraphLink();
     link.Source = source.Id;
     link.Target = target.Id;
     AddLink(link);
     return link;
 }
 private void AddNode(DirectedGraphNode node)
 {
     var nodes = _directedGraph.Nodes;
     var nodeIndex = nodes.Length;
     Array.Resize(ref nodes, nodeIndex + 1);
     nodes[nodeIndex] = node;
     _directedGraph.Nodes = nodes;
 }
 private void ConfigureDependencyNode(DirectedGraphNode node, PackageUpgrade upgrade)
 {
     if (upgrade.Package == null)
     {
         node.Stroke = _palette.MissingPackageColor;
         node.StrokeThickness = "2";
     }
 }
 private DirectedGraphNode CreateNode(string packageId)
 {
     var node = new DirectedGraphNode();
     node.Id = packageId;
     return node;
 }