public SankeyLink AddLink(SankeyNode source, SankeyNode target, double value, string label = "") { var link = new SankeyLink(source, target, value, label); _links.Add(link); return(link); }
public SankeyLink(SankeyNode source, SankeyNode target, double value, string label) { Source = source; Target = target; Value = value; Label = label; }
public SankeyNode AddNode(string label) { var node = new SankeyNode(label, _nodes.Count); _nodes.Add(node); return(node); }