public static void PerformLayout(Graphics graphics, IEnumerable <Node> nodes) { foreach (var node in nodes.Reverse <Node>()) { GraphRenderer.PerformLayout(graphics, node); } }
public static void Render(Graphics graphics, IEnumerable <Node> nodes, bool showLabels, object context) { var skipConnections = new HashSet <NodeConnection>(); foreach (var node in nodes.Reverse <Node>()) { GraphRenderer.RenderConnections(graphics, node, skipConnections, showLabels); } foreach (var node in nodes.Reverse <Node>()) { GraphRenderer.Render(graphics, node, context); } }