!str #17189 Add withAttributes and named to Graph

* Remove optional attributes parameter in favor of withAttributes
* Overload explosion when trying to add attributes to ZipWith.
* Aligned with Flow and Source.
This commit is contained in:
Patrik Nordwall 2015-04-14 08:59:37 +02:00
parent c98aee55ed
commit c6404d3e44
24 changed files with 296 additions and 212 deletions

View file

@ -21,4 +21,8 @@ trait Graph[+S <: Shape, +M] {
* Every materializable element must be backed by a stream layout module
*/
private[stream] def module: StreamLayout.Module
def withAttributes(attr: OperationAttributes): Graph[S, M]
def named(name: String): Graph[S, M] = withAttributes(OperationAttributes.name(name))
}