import scalax.collection.Graph
import scalax.collection.edge.Implicits._
import scalax.collection.edge.LBase.LEdgeImplicits
sealed abstract class Relationship(name: String)
case object A extends Relationship("A")
object RelImplicits extends LEdgeImplicits[Relationship]
import RelImplicits._
case class NodeType(id: Int)
val a = NodeType(1)
val b = NodeType(2)
val g = Graph((a ~+#> b)(A))
g.edges.headOption map(_.name) // error: value name is not a member of g.EdgeT
g.edges.headOption map(_.label.name) // error:value nameisnot a member ofscalax.collection.edge.LkDiEdge[NodeT]#L1I guess the issue is simply that name has no getter...Petersealed abstract class Relationship(val name: String)