January 2019
Beginner to intermediate
154 pages
4h 31m
English
Similar to mapVertices(), you can also transform the properties of each edge by using the mapEdges() method on a graph. In the following example, we are modifying relation attribute of each edge but adding the "relation"string:
//Scalaval newGraph2 = newGraph.mapEdges( e => "relation : "+e.attr )
Read now
Unlock full access