public Arc(string name, Node startNode, Node endNode, bool directed = true) : base(name) { StartNode = startNode; EndNode = endNode; Directed = directed; }
public void VisitNode(Node node) { int d = dp.NodeRadius; var p = converter.ToDisplayCoord( new Point(node.CoordinateX, node.CoordinateY)); var brush = alternatePen.ContainsKey(node) ? alternatePen[node].Brush : dp.NodeBrush; graphics.DrawString(node.Name, dp.LabelFont, dp.LabelBrush, p.X, p.Y - 15); graphics.FillEllipse(brush, p.X - d/2, p.Y - d/2, d, d); }