In this section, let's develop one complex non-linear graph using Akka Streams Graph DSL.
Refer to the Akka Streams Graph DSL's Non-Linear Graph image in the Akka Streams GraphDSL section. We will develop the same example here.
Follow these steps to execute this example:
- Create a Scala SBT project in your favorite IDE:
Project name: akka-streams-scala-graphdsl-example
- Add the akka-streams module to build.sbt:
build.sbt:
      name := "akka-streams-scala-graphdsl-app"
      version := "1.0.0"
      scalaVersion := "2.12.2"
      libraryDependencies ++= Seq( 
        "com.typesafe.akka" %% "akka-stream" % "2.5.9"
       ) 
The Akka Streams module (akka-stream) contains Akka Streams API, Akka Streams DSL, and Graph DSL.
- Create a Scala App with the Akka Streams Graph...
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                