Exemplo n.º 1
0
        protected void AddConcreteEdge(string source, string destiny)
        {
            Tuple <Node, Node> edge = BuildEdgeNodes(source, destiny);

            Edges = Edges.Append(new Edge(source: edge.Item1,
                                          destiny: edge.Item2));
        }
Exemplo n.º 2
0
        protected void AddConcreteEdge(string source, string destiny, int weigth)
        {
            Tuple <Node, Node> edge = BuildEdgeNodes(source, destiny);

            Edges = Edges.Append(new WeigthedEdge(source: edge.Item1,
                                                  destiny: edge.Item2,
                                                  weigth: weigth));
        }