Exemplo n.º 1
0
        public SankeyLink AddLink(SankeyNode source, SankeyNode target, double value, string label = "")
        {
            var link = new SankeyLink(source, target, value, label);

            _links.Add(link);
            return(link);
        }
Exemplo n.º 2
0
 public SankeyLink(SankeyNode source, SankeyNode target, double value, string label)
 {
     Source = source;
     Target = target;
     Value  = value;
     Label  = label;
 }
Exemplo n.º 3
0
        public SankeyNode AddNode(string label)
        {
            var node = new SankeyNode(label, _nodes.Count);

            _nodes.Add(node);
            return(node);
        }