[BasicQuestion] problem using pathUntil and pathTo methods

26 views
Skip to first unread message

Rodrigo Bonifacio

unread,
Mar 25, 2020, 11:36:05 AM3/25/20
to scala-graph
value pathUntil is not a member of scalax.collection.mutable.Graph[br.unb.cic.soot.graph.Node,scalax.collection.GraphEdge.DiEdge]#NodeT

I Have the following definitions for a graph: 

trait NodeType 

case class SourceNode() extends NodeType
case class SinkNode() extends NodeType
case class SimpleNode() extends NodeType

case class Node(className: String, method: String, stmt: String, line: Int, nodeType: NodeType)

var svg = collection.mutable.Graph.empty[Node,DiEdge]



When I try to call the pathUntil method in a node of the svg graph, I get a compilation error using sbt: value pathUntil is not a member of scalax.collection.mutable.Graph[br.unb.cic.soot.graph.Node,scalax.collection.GraphEdge.DiEdge]#NodeT

A similar error also occurs when I try to use the method pathTo. After spending a couple of hours, I could not figure out what is happening. 

Cheers,

Rodrigo.

Peter Empen

unread,
Mar 25, 2020, 4:05:10 PM3/25/20
to scala-graph
Hi Rodrigo,

could you please paste your call of pathUntil here?
The compile error tells that you are using a type projection  instead of the expected path dependent type...
Reply all
Reply to author
Forward
0 new messages