Build a graph with operators

This section illustrates the use of C++ operators to simplify the building of graphs.

Several C++ operators are overloaded to simplify graph construction. For example, the following:

    auto t1 = std::make_shared<op::v1::Multiply>(t0, c);

can be simplified to:

    auto t1 = (a + b) * c;

The expression a + b is equivalent to std::make_shared<op::v1::Add>(a, b) and the * operator similarly returns std::make_shared<op::v1::Multiply> to its arguments.